Can't build C++ Project with Visual Studio

When I make a new blank c++ project, open the .sln in visual studio and try to run it I always run into this error here:

Der Befehl ““D:\Epic Games\UE_5.6\Engine\Build\BatchFiles\Build.bat” TestProjectEditor Win64 Development -Project=“D:\UnrealEngine\Projects\TestProject\TestProject.uproject” -WaitMutex -FromMsBuild -architecture=x64” wurde mit dem Code 8 beendet.

I tried new blank projects, starting the .bat file manually, checking logs in appdata(none seem to be generated). Google and AI couldn’t help me so far.

Hi @Baileys1991,

It’s possible you don’t have all/the correct components installed in Visual Studio for UE 5.6.

Here’s a breakdown of the VS version and components version such as MSCV and the Windows SDK that you will need installed:

The full documentation is here.

Thanks,
Hayden

I read through the documentation and carefully followed the steps. Unfortunately same result.

I Installed MSVC, Windows SDK 11 and 10, LLM 18.1.8, .Net 8.0. I added these to VS:

  • .NET desktop development
  • Desktop development with C++
  • .NET Multi-platform App UI development

Under Gaming, enable Game development with C++

  • C++ profiling tools
  • C++ AddressSanitizer
  • Windows 10 or 11 SDK (10.0.18362 or Newer)
  • Unreal Engine installer.

Passed all Unreal Integration Konfigurations

also I did customized the suggesteted VS Settings.

Same Error:
MSB3073 Der Befehl ""D:\Epic Games\UE_5.6\Engine\Build\BatchFiles\Build.bat" vscodetestEditor Win64 Development -Project="D:\UnrealEngine\Projects\vscodetest\vscodetest.uproject" -WaitMutex -FromMsBuild -architecture=x64" wurde mit dem Code 8 beendet.

Die Erstellung wurde um 17:54 gestartet...
1>------ Erstellen gestartet: Projekt: vscodetest, Konfiguration: Development_Editor x64 ------
1>Using bundled DotNet SDK version: 8.0.300 win-x64
1>Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" vscodetestEditor Win64 Development -Project="D:\UnrealEngine\Projects\vscodetest\vscodetest.uproject" -WaitMutex -FromMsBuild -architecture=x64
1>Log file: C:\Users\schwa\AppData\Local\UnrealBuildTool\Log.txt
1>Creating makefile for vscodetestEditor (no existing makefile)
1>Expecting to find a type to be declared in a module rules named 'VisualStudioTools' in 'UE5Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.  This type must derive from the 'ModuleRules' type defined by UnrealBuildTool.
1>
1>Result: Failed (RulesError)

You might have an older version of VisualStudioTools that is incompatible with newer versions UE 5.
I would suggest looking at the github instructions regarding installation and configuration:

Not really sure why you would use it in 2025 though.

I found that solution now too. I had to disable Visual Studio Integration Tool. Now it builds.
It’s my first time setting it up, idk why the Configurationsetup for in Visual Studio sugested to install Visual Studio Integration Tool, even though it is no longer needed.