# |Unreal Engine 5.7 + Visual Studio 2026| Build Engine From Source

**URL:** <https://forums.unrealengine.com/t/unreal-engine-5-7-visual-studio-2026-build-engine-from-source/2677959>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [November 24, 2025, 4:38am UTC](https://forums.unrealengine.com/t/unreal-engine-5-7-visual-studio-2026-build-engine-from-source/2677959 "2025-11-24T04:38:34Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![8Zerocool8](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/8zerocool8/32/708718_2.png) [@8Zerocool8](https://forums.unrealengine.com/u/8Zerocool8)\
**Post date:** [November 24, 2025, 4:38am UTC](https://forums.unrealengine.com/t/unreal-engine-5-7-visual-studio-2026-build-engine-from-source/2677959/1 "2025-11-24T04:38:34Z")

</div>

This is a quick and definitely dirty fix for anyone trying to build UE 5.7 (5.7.0-release Git Tag to be specific.) with Visual Studio 2026 on Windows 11.

For now I have found, that the GenerateProjectFiles.bat script does not work because the UnrealBuildTool gets Compiler and Toolchain versions from configuration files which ask for VisualStudio2022. If you only have Visual Studio 2026, then in a file called VCEnvironment.cs located at Engine/Source/Programs/UnrealBuildTool/Platform/Windows/VCEnvironment.cs simply add the lines as below. This way you can generate the engine’s project files with GenerateProjectFiles.bat.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/f/e/cfe4139fe1d2c8196be9dbd01723eb2ace0f8a01.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/f/e/cfe785c87a16038ab02e84469ccd599e772d4a9f.png)

---

<div class="post-metadata">

**Author:** ![8Zerocool8](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/8zerocool8/32/708718_2.png) [@8Zerocool8](https://forums.unrealengine.com/u/8Zerocool8)\
**Post date:** [November 24, 2025, 4:43am UTC](https://forums.unrealengine.com/t/unreal-engine-5-7-visual-studio-2026-build-engine-from-source/2677959/2 "2025-11-24T04:43:26Z")

</div>

TLDR: This is for anyone getting the error, “Visual Studio 2022 x64 must be installed in order to build this target.“ while building the engine from source.

---

<div class="post-metadata">

**Author:** ![thor\_hzf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thor\_hzf](https://forums.unrealengine.com/u/thor_hzf)\
**Post date:** [November 24, 2025, 9:40am UTC](https://forums.unrealengine.com/t/unreal-engine-5-7-visual-studio-2026-build-engine-from-source/2677959/4 "2025-11-24T09:40:27Z")

</div>

thanks @8Zerocool8 ,

yes , I checked just now, re-assign the enum variable “Compiler” to “WindowsCompiler.VisualStudio2022” before this code:  
( file:VCEnvironment.cs , line 520 )

WindowsPlatform.TryGetToolChainDir(….)

successfully generate project files, time to say goodbye to VisualStudio2022….

---

<div class="post-metadata">

**Author:** ![HerculesIronworks](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HerculesIronworks](https://forums.unrealengine.com/u/HerculesIronworks)\
**Post date:** [November 26, 2025, 4:45pm UTC](https://forums.unrealengine.com/t/unreal-engine-5-7-visual-studio-2026-build-engine-from-source/2677959/5 "2025-11-26T16:45:09Z")

</div>

Hi

I’m having a similar issue with Windows packaging requiring Visual Studio 2022, but I’m not trying to build the engine from source, I’m using the standard engine from the Epic Launcher.

I posted my question before finding your post. You can see that original post here (my apologies to the community for my messy posting).

> [@How to configure Visual Studio for UE 5.7?](https://forums.unrealengine.com/t/how-to-configure-visual-studio-for-ue-5-7/2678731):
>
> Hi all I’m just a novice hobbyist, please be gentle. Got new Windows 11 PC and want to try developing apps for PCVR using Meta Quest 3 headset. I’ve previously dabbled with developing stand-alone Quest apps (with mixed results) but I thought this time I would try dev for PC - thinking life might be easier with all the Android stuff out of the way (ha ha). Baby steps … I installed UE 5.7, created project with VR template as (what I hope will be) a simple test. I set up Meta Quest Link and I c…

I can find the VCEnvironment.cs file but I can find the exact section you refer to. I can see several places where there are references to VisualStudio2022, but I’m not confident about what I should do.

Helpful suggestions welcome (Might v2026 work without issues? Will I have to tinker with VCEnvironment.cs?)

I did think that I should backtrack from the very new UE5.7 and try UE5.6 instead. But I suspect I will have the same issue requiring Visual Studio 2022 and not be able to get it. Perhaps I need to wait for UE5.7.1 …

(For info: I will only ever be using Blueprints, not C++)

---

<div class="post-metadata">

**Author:** ![HerculesIronworks](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HerculesIronworks](https://forums.unrealengine.com/u/HerculesIronworks)\
**Post date:** [November 26, 2025, 8:48pm UTC](https://forums.unrealengine.com/t/unreal-engine-5-7-visual-studio-2026-build-engine-from-source/2677959/6 "2025-11-26T20:48:22Z")

</div>

Bit the bullet and decided to just try v2026. Configured same as v2022. Packaging now OK.

---

<div class="post-metadata">

**Author:** ![8Zerocool8](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/8zerocool8/32/708718_2.png) [@8Zerocool8](https://forums.unrealengine.com/u/8Zerocool8)\
**Post date:** [November 27, 2025, 9:08pm UTC](https://forums.unrealengine.com/t/unreal-engine-5-7-visual-studio-2026-build-engine-from-source/2677959/7 "2025-11-27T21:08:28Z")

</div>

Oh nice, you found the culprit! Thanks for sharing the info 🙂

---

<div class="post-metadata">

**Author:** ![MayLyBy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maylyby/32/1132525_2.png) [@MayLyBy](https://forums.unrealengine.com/u/MayLyBy)\
**Post date:** [December 1, 2025, 10:30am UTC](https://forums.unrealengine.com/t/unreal-engine-5-7-visual-studio-2026-build-engine-from-source/2677959/9 "2025-12-01T10:30:04Z")

</div>

Did you type it wrong? It should be：  
if(Compiler == WindowsCompiler.VisualStudio2022 ll ToolChain == WindowsCompiler.VisualStudio2022)  
{  
Compiler = WindowsCompiler.VisualStudio2026;  
ToolChain = WindowsCompiler.VisualStudio2026;  
}

Not be：  
if(Compiler == WindowsCompiler.VisualStudio2022 ll ToolChain == WindowsCompiler.VisualStudio2022)  
{  
Compiler = WindowsCompiler.VisualStudio2026;  
Compiler = WindowsCompiler.VisualStudio2026;  
}

---

<div class="post-metadata">

**Author:** ![thor\_hzf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thor\_hzf](https://forums.unrealengine.com/u/thor_hzf)\
**Post date:** [December 1, 2025, 10:39am UTC](https://forums.unrealengine.com/t/unreal-engine-5-7-visual-studio-2026-build-engine-from-source/2677959/10 "2025-12-01T10:39:50Z")

</div>

> [@MayLyBy](#):
>
> Compiler = WindowsCompiler.VisualStudio2026;

Just one line is enough :

```auto
Compiler = WindowsCompiler.VisualStudio2026;

```

---

<div class="post-metadata">

**Author:** ![8Zerocool8](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/8zerocool8/32/708718_2.png) [@8Zerocool8](https://forums.unrealengine.com/u/8Zerocool8)\
**Post date:** [December 1, 2025, 4:46pm UTC](https://forums.unrealengine.com/t/unreal-engine-5-7-visual-studio-2026-build-engine-from-source/2677959/11 "2025-12-01T16:46:56Z")

</div>

Yes, there is a typo in there. Thanks for spotting it. 🙂

---

<div class="post-metadata">

**Author:** ![i.am.salierik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@i.am.salierik](https://forums.unrealengine.com/u/i.am.salierik)\
**Post date:** [January 2, 2026, 6:34pm UTC](https://forums.unrealengine.com/t/unreal-engine-5-7-visual-studio-2026-build-engine-from-source/2677959/12 "2026-01-02T18:34:09Z")

</div>

You saved my day, thank you!

---

<div class="post-metadata">

**Author:** ![nocomentsspb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nocomentsspb](https://forums.unrealengine.com/u/nocomentsspb)\
**Post date:** [January 13, 2026, 5:46am UTC](https://forums.unrealengine.com/t/unreal-engine-5-7-visual-studio-2026-build-engine-from-source/2677959/13 "2026-01-13T05:46:12Z")

</div>

In `Engine/Source/Programs/UnrealBuildTool/ProjectFiles/ProjectFileGenerator.cs:3090  
I’ve disabled parallel threads for simplify debug:

Before

```auto
Parallel2.ForEach(AllTargetsExceptSubTargets, (TargetFilePath) =>

```

After:

```auto
AllTargetsExceptSubTargets.ForEach((TargetFilePath) =>

```

And run UnrealBuildTool manually (from VS in debug) with command line argument ‘-ProjectFiles PathToUESource’.

I’ve found, that the problem in Datasmith

In `Engine/Source/Programs/Enterprise/Datasmith/DatasmithMaxExporter/DatasmithMax2017.Target.cs`  
need to change compiler to default

```auto
--- a/Engine/Source/Programs/Enterprise/Datasmith/DatasmithMaxExporter/DatasmithMax2017.Target.cs
+++ b/Engine/Source/Programs/Enterprise/Datasmith/DatasmithMaxExporter/DatasmithMax2017.Target.cs
@@ -40,7 +40,7 @@ public abstract class DatasmithMaxBaseTarget : TargetRules
                }
                else
                {
- WindowsPlatform.Compiler = WindowsCompiler.VisualStudio2022;
+ WindowsPlatform.Compiler = WindowsCompiler.Default;
                        AdditionalCompilerArguments = "/Zc:referenceBinding- /Zc:strictStrings- /Zc:rvalueCast- /Zc:preprocessor-";
                }

```

After it - the project has been created.

---

<div class="post-metadata">

**Author:** ![dvd.kh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dvd.kh](https://forums.unrealengine.com/u/dvd.kh)\
**Post date:** [April 10, 2026, 9:30am UTC](https://forums.unrealengine.com/t/unreal-engine-5-7-visual-studio-2026-build-engine-from-source/2677959/14 "2026-04-10T09:30:53Z")

</div>

I made this code change and the project’s .sln file got generated…

Even though **Clean Solution** works fine, when I try to build it in UE5, it throws these errors!  
Any idea how to fix it?

**UE 5.7.3** + **VS 2026 [18.4.3]**

 ![01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/3/8/838ea68c874b87b2cd4a290508666904ca56af03.png)

[Errors.log](https://forums.unrealengine.com/uploads/short-url/4Dsg46IRt8JVE3vOKOQ9HU9saaG.log) (91.5 KB)
