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

**URL:** <https://forums.unrealengine.com/t/knowledge-base-toolchain-14-32-31326-which-comes-as-the-default-of-vs2022-v17-2-cannot-compile-ue5/578788>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [June 10, 2022, 3:35pm UTC](https://forums.unrealengine.com/t/knowledge-base-toolchain-14-32-31326-which-comes-as-the-default-of-vs2022-v17-2-cannot-compile-ue5/578788 "2022-06-10T15:35:53Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [April 4, 2023, 1:35pm UTC](https://forums.unrealengine.com/t/knowledge-base-toolchain-14-32-31326-which-comes-as-the-default-of-vs2022-v17-2-cannot-compile-ue5/578788/4 "2023-04-04T13:35:50Z")

</div>

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](https://forums.unrealengine.com/uploads/short-url/gpL5mzvsz1FI9R7xkNQAiLTqwFW.cs) (6.7 KB)

 ![VS2022previewpatch2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/3/4/8348d213a8d92a000190070f293cfc4c3e81a0eb.jpeg)  
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

 ![VS2022previewpatch1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/d/4/6d4985525dc73365027cbeb80f0a92d2b5a10a43.jpeg)  
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)](https://github.com/jimshalo10/UnrealEngine-5/blob/Luoshuangs-GPULightmass-5.1.1-vs2022/README.md)

---

_[View the full topic](https://forums.unrealengine.com/t/knowledge-base-toolchain-14-32-31326-which-comes-as-the-default-of-vs2022-v17-2-cannot-compile-ue5/578788)._
