5.8.1 Project fails to build with Visual Studio 2026

I can’t figure out why UE5.8.1 keeps trying to build with Visual Studio 2022 despite having 2026 and UE 5.8 documentation stating 2026 is supported. What am I doing wrong here? Do I still need to have 2022 installed? Below is the error output I get. Note I’ve censored the project file paths.

Running C:/Program Files/Epic Games/UE_5.8/Engine/Build/BatchFiles/Build.bat  -projectfiles -project="PROJECT_PATH/PROJECT.uproject" -game -rocket -progress -log="PROJECT_PATH/Saved/Logs/UnrealVersionSelector-2026.08.12-12.46.56.log"
Using bundled DotNet SDK version: 10.0 win-x64
Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" -projectfiles -project="PROJECT_PATH/PROJECT.uproject" -game -rocket -progress -log="PROJECT_PATH/Saved/Logs/UnrealVersionSelector-2026.08.12-12.46.56.log"
Log file: PROJECT_PATH\Saved\Logs\UnrealVersionSelector-2026.08.12-12.46.56.log

Generating VisualStudio2022 project files:
Discovering modules, targets and source code for project...
Visual Studio C++ 2022 installation not found - ignoring preferred project file format.
Writing 'PROJEC_PATHT\Automation_PROJECT.sln'...
Writing 'PROJECT_PATH\Automation_PROJECT.slnx'...
Writing automation project files took 0.15s
Adding projects for all targets...
Adding projects for all targets took 2.55s
Visual Studio 2022 x64 must be installed in order to build this target.

Result: Failed (OtherCompilationError)
Total execution time: 5.02 seconds
Trace written to file LOCALDATA_PATH\UnrealBuildTool\Trace.uba with size 4.0kb

Looking at the release notes the following seams to be of note.

IDE Version the Build farm compiles against

  • Visual Studio 2022 17.14, 14.44.35207 toolchain, and Windows 10 SDK (10.0.22621.0)

Does this mean I need to have both 2022 and 2026 installed and when generating the visual studio files it’ll do so with 2022? What about building in 2026 editor then? Can someone at Epic please improve the documentation here…

Success! I had to create a blueprint project. Once done I went to Edit > Editor Preferences > General > Source Code and set “Source Code Editor” to “Visual Studio 2026”. I let it restart. Then closed it. Now I went back to my C++ project and was able to right click and generate the project files successfully.