# 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:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe\_Radak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/joe_radak/32/1197589_2.png) [@Joe\_Radak](https://forums.unrealengine.com/u/Joe_Radak)\
**Post date:** [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/1 "2022-06-10T15:35:53Z")

</div>

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](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)

---

<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:** [June 10, 2022, 4:26pm 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/2 "2022-06-10T16:26:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Lathesh\_shetty](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lathesh_shetty/32/88706_2.png) [@Lathesh\_shetty](https://forums.unrealengine.com/u/Lathesh_shetty)\
**Post date:** [March 31, 2023, 12:21pm 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/3 "2023-03-31T12:21:55Z")

</div>

Unable to find valid 14.29.30136 toolchain for VisualStudio2022 x64  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/9/1/991a5ce21239624542ac3f24e5719b6e3aea2c1a.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/5/135d202d98770e2b902b8299acdab64763a124f5.png)

what am i missing to get this error

---

<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)

---

<div class="post-metadata">

**Author:** ![Lathesh\_shetty](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lathesh_shetty/32/88706_2.png) [@Lathesh\_shetty](https://forums.unrealengine.com/u/Lathesh_shetty)\
**Post date:** [April 10, 2023, 12:56pm 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/5 "2023-04-10T12:56:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ralderel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ralderel](https://forums.unrealengine.com/u/Ralderel)\
**Post date:** [July 13, 2023, 1:13am 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/6 "2023-07-13T01:13:19Z")

</div>

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](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/d/aadfc5db2e7bd588c26e7db5cb9ce84889cdaebf.png)

---

<div class="post-metadata">

**Author:** ![James\_Simul](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@James\_Simul](https://forums.unrealengine.com/u/James_Simul)\
**Post date:** [August 21, 2023, 11:19am 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/7 "2023-08-21T11:19:52Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Shifty-max](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shifty-max](https://forums.unrealengine.com/u/Shifty-max)\
**Post date:** [December 12, 2023, 3:59pm 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/8 "2023-12-12T15:59:55Z")

</div>

Thanks a lot!
