Knowledge Base: Toolchain 14.32.31326 which comes as the default of VS2022 v17.2 cannot compile UE5

Toolchain 14.32.31326 which comes as the default of VS2022 v17.2 cannot compile UE5
Article written by Martin S.
Description:
The 14.32.31326 toolchain that comes with VS2022 v17.2 cannot compile UE5 because of bugs i…

https://dev.epicgames.com/community/learning/knowledge-base/2mbB/unreal-engine-toolchain-14-32-31326-which-comes-as-the-default-of-vs2022-v17-2-cannot-compile-ue5

Hi,
To anyone interested, this has now been assessed, as you can see in the above link, fixed by Microsoft and the code was changed so that UE 5.0.2 onwards fixed the problem.
In fact, UE 5.0.3 can use the latest version of Visual Studio 2022 without a problem
Thanks

2 Likes

Unable to find valid 14.29.30136 toolchain for VisualStudio2022 x64
image
image

what am i missing to get this error

Hi @Lathesh_shetty I had a similar problem recently.
In my case it was because there had been a change in the source code which prevented later version of Visual Studio from working

in the root of your source code you will see the file
MicrosoftPlatformSDK.Versions.cs (6.7 KB)


In here you will see that the version number range has been expanded
you may have to change the first value to 14.31.31103 by hand with `

notepad Engine\Source\Programs\UnrealBuildTool\Platform\Windows\MicrosoftPlatformSDK.Versions.cs

on the command line root of UE5 source

I also found a problem with preview version of VS2022 and patched as in picture


Basically I removed the “!” to stop code from ignoring Latest Preview versions of VS 2022 in the file “MicrosoftPlatformSDK.cs”

My best way of solving this is the get the final Production version of VS2022 downloaded and install ALL the previous library use Individual Components section and the patches above as the

GenerateProjectFile.bat -2022 uses this patch
see my Readme at
UnrealEngine-5/README.md at Luoshuangs-GPULightmass-5.1.1-vs2022 · jimshalo10/UnrealEngine-5 (github.com)

@Jimbohalo10 thankyou this finally worked for me had to stick with blueprints for a while because of this error.

I don’t have any problem with UE 5.0 but when running UE5.1 and UE 5.2 I have this error:
Unable to find valid 14.29.30136 toolchain for VisualStudio2022 x64

image

For others still having this issue - I fixed it by deleting BuildConfiguration.xml within %AppData%/Roaming/Unreal Engine/UnrealBuildTool/BuildConfiguration.xml.

For some reason the build config was specifying 14.29.3016. This must have been auto-generated at some point and was the cause of the issue. Maybe the GenerateProjectFile.bat should output that it is using a version taken from an xml file.

3 Likes

Thanks a lot!