Visual Studio 2022 x64 Must Be Installed in Order to Build This Target (UE5 Fix)

Table of Contents

Works in Unreal Engine 5.0 to 5.8. Updated October 2026.

Quick answer: Unreal Build Tool can’t find a C++ compiler it accepts. Having the Visual Studio IDE isn’t enough: the C++ build tools must be installed too.

  1. Open the Visual Studio Installer and click Modify on Visual Studio 2022.
  2. Under Workloads, tick Desktop development with C++ and Game development with C++.
  3. Under Individual components, make sure MSVC v143 – VS 2022 C++ x64/x86 build tools and a Windows 11 SDK (or Windows 10 SDK) are ticked, then install.
  4. Right-click your .uproject, choose Generate Visual Studio project files, and build again.

Which Visual Studio your engine version needs

From Epic’s Visual Studio setup page:

Unreal EngineVisual Studio 2022Visual Studio 2019Visual Studio 2026
5.817.14 or laterNot supported18.0 or later
5.717.8 or later (17.14 recommended)Not supportedExperimental
5.617.8 or later (17.14 recommended)Not supportedNot supported
5.517.8 or later (17.10 recommended)Not supportedNot supported
5.417.4 or later (17.8 recommended)Not supportedNot supported
5.317.4 or later (17.6 recommended)16.11.5 or laterNot supported

UE 5.4 dropped Visual Studio 2019. If you upgraded a project from 5.3 or older and only have VS 2019, this is your error. Install VS 2022.

Step 1: Install the C++ components

In the Visual Studio Installer, click Modify and check:

  • Workloads: Desktop development with C++ and Game development with C++. Epic’s list also includes .NET desktop development.
  • Individual components: MSVC v143 – VS 2022 C++ x64/x86 build tools (Latest), a Windows 10 or 11 SDK, and Unreal Engine installer (under Game development with C++).

Recent engine versions need MSVC 14.38 or newer. Epic recommends 14.50 for UE 5.8. Restart your PC after installing.

Step 2: Check BuildConfiguration.xml

A BuildConfiguration.xml left over from an older setup can force Unreal to look for a compiler you no longer have. Unreal Build Tool reads it from all of these places:

  • Engine/Saved/UnrealBuildTool/BuildConfiguration.xml
  • %APPDATA%/Unreal Engine/UnrealBuildTool/BuildConfiguration.xml
  • Documents/Unreal Engine/UnrealBuildTool/BuildConfiguration.xml
  • YourProject/Saved/UnrealBuildTool/BuildConfiguration.xml

Open each one that exists. Set the compiler and project file version to Visual Studio 2022, and remove any CompilerVersion line that names a toolset you haven’t installed:

				
					<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
	<WindowsPlatform>
		<Compiler>VisualStudio2022</Compiler>
	</WindowsPlatform>
	<VCProjectFileGenerator>
		<Version>VisualStudio2022</Version>
	</VCProjectFileGenerator>
</Configuration>
				
			

If several files disagree, keep just one so you know which settings apply.

Step 3: Read the exact reason

If it still fails, the build output or the Unreal Build Tool log names the toolchain it was looking for. A line like “requires, at minimum, the MSVC 14.38 toolchain” tells you exactly which MSVC version to add under Individual components.

Common situations

SituationFix
Upgraded from UE 5.3 or older, only VS 2019 installedInstall Visual Studio 2022 (Step 1).
VS 2022 installed for C# or web work onlyAdd the two C++ workloads (Step 1).
Using Rider or VS CodeThey don’t include a compiler. Install VS 2022 with the C++ workloads alongside them.
Packaging a Blueprint project that contains a C++ pluginPackaging compiles the plugin, so you need the C++ tools too.
Error appeared after changing VS versionsCheck every BuildConfiguration.xml (Step 2).

FAQ

I get “Visual Studio 2019 must be installed” instead.

That’s an older engine (5.3 or earlier) or a BuildConfiguration.xml asking for VS 2019. The same steps apply: install the C++ components, or set the compiler to VisualStudio2022 in BuildConfiguration.xml.

Can I use Visual Studio 2026?

With UE 5.8, yes (18.0 or later). It’s experimental in 5.7 and not supported in 5.6 or older.

Do I need Visual Studio for a Blueprint-only project?

Not to open or package it, unless the project contains C++ plugins that need compiling.

Related tutorials