# UnrealBuildTool has banned the MSVC toolchain

**URL:** <https://forums.unrealengine.com/t/unrealbuildtool-has-banned-the-msvc-toolchain/556715>\
**Category:** Getting Started & Setup\
**Tags:** error, unreal-engine, UE5-0, question\
**Created:** [May 13, 2022, 11:24pm UTC](https://forums.unrealengine.com/t/unrealbuildtool-has-banned-the-msvc-toolchain/556715 "2022-05-13T23:24:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![badziubadziu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@badziubadziu](https://forums.unrealengine.com/u/badziubadziu)\
**Post date:** [May 13, 2022, 11:24pm UTC](https://forums.unrealengine.com/t/unrealbuildtool-has-banned-the-msvc-toolchain/556715/1 "2022-05-13T23:24:37Z")

</div>

I have both Visual Studio 2019 and 2022 installed.

Building engine from source, UnrealBuildTool selected MSVC Toolchain 14.29.30133 (the latest that comes with 2019) and built fine.

When attempting to generate project files for a project (which is associated with this source engine build), I get the following error:

`ERROR: UnrealBuildTool has banned the MSVC 14.32.31326-14.32.31328 toolchains due to compiler issues. Please install a different toolchain from the Visual Studio installer.`

Why does UnrealBuildTool try to use a different toolchain than the engine when generating project files?

According to this:

> **[Build Configuration](https://docs.unrealengine.com/4.27/en-US/ProductionPipelines/BuildTools/UnrealBuildTool/BuildConfiguration/)**
>
> Configure how the engine is built.

CompilerVersion can be specified in build config, which is empty in my case, so I would assume it picks it up automatically.

---

<div class="post-metadata">

**Author:** ![SkinnyBruv](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/skinnybruv/32/878044_2.png) [@SkinnyBruv](https://forums.unrealengine.com/u/SkinnyBruv)\
**Post date:** [May 14, 2022, 7:37am UTC](https://forums.unrealengine.com/t/unrealbuildtool-has-banned-the-msvc-toolchain/556715/2 "2022-05-14T07:37:15Z")

</div>

I get the same issue using  
-Windows 11 (Fresh Install)  
-Visual Studio 2022

Visual Studio settings  
-C++ profiling tools  
-C++ AddressSanitizer  
-Windows 10 SDK- (10.0.18362 or newer)  
-Unreal Engine Installer

Resolved as per below @gunnar.kriik

---

<div class="post-metadata">

**Author:** ![gunnar.kriik](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gunnar.kriik/32/485651_2.png) [@gunnar.kriik](https://forums.unrealengine.com/u/gunnar.kriik)\
**Post date:** [May 14, 2022, 7:32pm UTC](https://forums.unrealengine.com/t/unrealbuildtool-has-banned-the-msvc-toolchain/556715/3 "2022-05-14T19:32:53Z")

</div>

Was able to resolve this issue by launching Visual Studio Installer, then “Modify” the VS2022 installation, then install MSVC v14.31

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/a/22a6364d5ed44e81d87d4b399ca5c73fb68c46c3.png)

---

<div class="post-metadata">

**Author:** ![Visuallization1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Visuallization1](https://forums.unrealengine.com/u/Visuallization1)\
**Post date:** [May 27, 2022, 3:03pm UTC](https://forums.unrealengine.com/t/unrealbuildtool-has-banned-the-msvc-toolchain/556715/4 "2022-05-27T15:03:53Z")

</div>

Ahoi!

Updating Visual Studio 2022 fixed it for me as well.

---

<div class="post-metadata">

**Author:** ![ammarshow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ammarshow](https://forums.unrealengine.com/u/ammarshow)\
**Post date:** [May 31, 2022, 5:18pm UTC](https://forums.unrealengine.com/t/unrealbuildtool-has-banned-the-msvc-toolchain/556715/5 "2022-05-31T17:18:36Z")

</div>

really thank you

---

<div class="post-metadata">

**Author:** ![jeromecortie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jeromecortie](https://forums.unrealengine.com/u/jeromecortie)\
**Post date:** [July 8, 2024, 2:56pm UTC](https://forums.unrealengine.com/t/unrealbuildtool-has-banned-the-msvc-toolchain/556715/6 "2024-07-08T14:56:38Z")

</div>

Same on my side, updating VS2022 fixed it !

---

<div class="post-metadata">

**Author:** ![Akio\_Kami](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/akio_kami/32/558450_2.png) [@Akio\_Kami](https://forums.unrealengine.com/u/Akio_Kami)\
**Post date:** [February 10, 2025, 4:18pm UTC](https://forums.unrealengine.com/t/unrealbuildtool-has-banned-the-msvc-toolchain/556715/7 "2025-02-10T16:18:50Z")

</div>

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/c/a/ecaf29375ba4c4932ebd92591fdd642d66e72142.jpeg "Unrealbuildtool has banned the MSVC [UE5 Possible Solutions]") ](https://www.youtube.com/watch?v=2B6G6_T1et0)
