BUILD FAILED IN UNREAL 5.4

I have the same issue and I’m using the default Visual Studio. Even after uninstalling the (latest), and installing the correct 14.38 versions, nothing was installed/uninstalled form the Tools folder in the VS install directory, by the VS installer, as far as I can tell. I had to hard delete the 14.41 (latest) MSVC install going into the File Explorer… and now MVSC complains that

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.

Well… No wonder, since there was no 14.38 folder installed by the VS installer as far as I can tell. What is going on for lordy’s sake. I really don’t understand why its refusing to use 14.38 at all and asking for latest at all cost… I have compiled from source for 3 years without issue and now I’m stuck with this problem. Weird. Out of the blue and everything…

Edit: Repairing Visual Studio seems to be in the process of finally doing what I asked and installing 14.38 in the Tools folder. I’m sure there’s a bug with their installer. No reason why now suddenly the folder shows up.

I had to repair VS afterward to see the changes actually done… i think its a bug since their patch of 13/08/24 with my machine specifically. Lot’s of headache.

It now begins building without complaining about mismatch version… Let’s see if it goes through the whole thing without failing now.

Edit: Sorry I didn’t think my message would appear one right after the other on the forum -.-

I had the same problem, and I have managed to fix it by creating a whole new project in 5.4 and try to migrate my old project main map to the new empty project.
By the way when you do so, you won’t be able to see your migrated map on the new project.
For fixing this bug, you have to open windows explorer and try to open your map with unreal engine once.
After migrating everything you have to reassign all of your input settings and project settings.
After that if you have any Localization ( Multi-language Stuff ), you got to copy them using explorer from your old project into new one.

Thank you for sharing your solution, I ran into the same issue trying to build a UE5.4 project after updating my VS2022 for UE5.5 code project to open! This fixed it :slight_smile: