Bino
(Bino)
November 6, 2019, 2:35am
21
I had this issue and I just reverted Visual Studio 2019 (https://docs.microsoft.com/en-us/vis…arlier-release ) Worked for me…
I personally didn’t want to hack together a work around when broken math unit tests were coming into play. I have enough problems as it is.
Zeblote:
VS 16.3 completely breaks compiling the engine, and it is not possible to downgrade the community version. However, not all is lost:
In the VS installer, go to individual components, scroll down to compilers, and check this:
https://media.discordapp.net/attachments/453306818198896737/626241521079025680/unknown.png
Then, open or create %AppData%\Roaming\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml and replace the content with:
<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
<WindowsPlatform>
<CompilerVersion>14.22.27905</CompilerVersion>
<Compiler>VisualStudio2019</Compiler>
</WindowsPlatform>
<VCProjectFileGenerator>
<Version>VisualStudio2019</Version>
</VCProjectFileGenerator>
</Configuration>
This should let you keep building the engine by using the version of the compiler that ships with VS 16.2.
Hopefully epic/ms will fix this in the future…
Thanks, this worked!
For those who are fairly new to Visual Studio, here are the exact steps to enable that extra tool: Visual Studio > Tools > Get tools and features > Visual Studio Installer > Individual components (tab) > CHECK MSVC v142 - VS C+±x64/x86-Buildtools (v14.22) (This must be the specific version of 14.22, as there are a few).
Zeblote
(Zeblote)
February 2, 2020, 1:19pm
23
You don’t actually need to do this anymore, the latest versions of VS 16.3 and 16.4 have fixed the compiler bug.
Zeblote:
VS 16.3 completely breaks compiling the engine, and it is not possible to downgrade the community version. However, not all is lost:
In the VS installer, go to individual components, scroll down to compilers, and check this:
https://media.discordapp.net/attachments/453306818198896737/626241521079025680/unknown.png
Then, open or create %AppData%\Roaming\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml and replace the content with:
<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
<WindowsPlatform>
<CompilerVersion>14.22.27905</CompilerVersion>
<Compiler>VisualStudio2019</Compiler>
</WindowsPlatform>
<VCProjectFileGenerator>
<Version>VisualStudio2019</Version>
</VCProjectFileGenerator>
</Configuration>
This should let you keep building the engine by using the version of the compiler that ships with VS 16.2.
Hopefully epic/ms will fix this in the future…
This worked for me when the issue first appeared but caused issues creating projects now in 4.24. Removing that file fixed the new issues.
JonathanArmstrong:
Thanks, this worked!
For those who are fairly new to Visual Studio, here are the exact steps to enable that extra tool: Visual Studio > Tools > Get tools and features > Visual Studio Installer > Individual components (tab) > CHECK MSVC v142 - VS C+±x64/x86-Buildtools (v14.22) (This must be the specific version of 14.22, as there are a few).
*Update: After upgrading my engine version, I was again getting this error. The new fix:
Go to \AppData\Roaming\Unreal Engine\UnrealBuildTool>delete BuildConfiguration.xml>rmb the [project name].uproject file>generate visual studio project files
Also, just to be extra safe-I had read through this document: https://docs.unrealengine.com/en-US/…tup/index.html and noticed that the “Unreal Engine Installer” was not enabled. So, I went to VS>Tools>Get tools and features>“Installation details”(on the right-hand column)>Game development with C++>CHECK “Unreal Engine Installer”>Modify>Launch VS
JonathanArmstrong:
*Update: After upgrading my engine version, I was again getting this error. The new fix:
Go to \AppData\Roaming\Unreal Engine\UnrealBuildTool>delete BuildConfiguration.xml>rmb the [project name].uproject file>generate visual studio project files
Also, just to be extra safe-I had read through this document: https://docs.unrealengine.com/en-US/…tup/index.html and noticed that the “Unreal Engine Installer” was not enabled.[/ATTACH]
I tried everything else in this thread and these two steps were exactly what I needed.
Deleting the old BuildConfiguration.xml is VERY important!