Unable to build after fresh install 5.4

when i install a fresh build on a fresh computer, i installed visual studio and logged into it before i even started downloading unreal engine. I added every workflow in the desktop and mobile section, i also selected game development with c++. under the optional sublists i selected everything pertinent to unreal engine and then some. here’s my problem: when i go to create a fresh project that is c++, it throws a critical error.

Visual Studio 2022 is installed, but is missing the C++ toolchain. Please verify that the “MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest)” component is selected in the Visual Studio 2022 installation options.
Total execution time: 0.54 seconds
UnrealBuildTool has banned the MSVC 14.39.33519-14.39.99999 toolchains due to compiler issues. Please install a different toolchain such as 14.38.33130 by opening the generated solution and installing recommended components or from the Visual Studio installer.

when i try to compile i get this error:

Severity Code Description Project File Line Suppression State Details
Error MSB3073 The command ““C:\Program Files\Epic Games\UE_5.4\Engine\Build\BatchFiles\Build.bat” GloriousCombatEditor Win64 Development -Project=“C:\Users\user\OneDrive\Documents\Unreal Projects\GloriousCombat\GloriousCombat.uproject” -WaitMutex -FromMsBuild -architecture=x64” exited with code 6. GloriousCombat C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets 44

I know for sure that the MSCV toolset is installed. what gives?

1 Like

Mine just messed up as I was using it, as well.

was it the same error? i dont know what gives. every version of unreal engine is having the same problem. it’s saying it’s an incorrect version number, but im using the latest version of visual studio.

i have tried to reinstall visual studio.

I have no idea what I did differently. I just did a repair on Visual Studio and then opened the solution and clicked install where it said that the project was trying to use a version of .NET that wasn’t installed. I had done all of that before. This time it took. All better ^\o/^

Greetings @ConstableCatnip

Welcome back to the Unreal Engine Community Forum! I was going to recommend trying to reinstall VS files/.NET. But, it looks like you just did that and seem to have resolved the issue? If not, post back and we’ll go further into it. If it’s fixed, yay!

Any new developement on this ? i’m having the same issue…

2 Likes

hi. while it’s true that i did do a repair on visual studio, i think the resolution to this problem was to open the solution and then allow visual studio to recommend the .NET update. should be in the top right. i thought i did that, but i guess i didnt at first.

Nothing here. I have had repair, reinstall, net framework 8 (the one recommended by VS)… nothing, still same error code. And nothing on the internet solves it. I can’t upgrade my project from 5.2 to 5.4 because of the build fail.

UPDATE: I switched VS 2023 from my language to English, and then it recommended a new update for .Net with is .Net 6 , but still not able to compile.

1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command ““C:\Program Files\Epic Games\UE_5.4\Engine\Build\BatchFiles\Build.bat” GameEditor Win64 Development -Project=“K:\Game\Repository\GameSandbox2\Game.uproject” -WaitMutex -FromMsBuild -architecture=x64” exited with code 6.

If you just installed Visual Studio, it is likely that you are using the latest MSVC toolchain (14.39) which has a compiler bug and Unreal will complain if you try to compile using that.

To fix that, open the Visual Studio 2022 installer, click “Modify” on your Visual Studio 2022 install, select the v14.38 toolchain, and hit “Modify”

7 Likes

Do I remove the other version or am I just adding the recommended version?

3 Likes