Building UnrealBuildTool in C:/Program Files/Epic Games/UE_4.27…
Running: C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo /verbosity:quiet “C:/Program Files/Epic Games/UE_4.27/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj” /property:Configuration=Development /property:Platform=AnyCPU
Missing C:/Program Files/Epic Games/UE_4.27/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe after build 发生这种问题该如何解决
The “BuildTool.exe missing” error usually happens during the packaging process because Visual Studio or the required C++ build libraries are missing.
Make sure you have the following installed:
-
Visual Studio 2019
-
.NET Framework 4.6+
-
C++ Build Tools
-
Desktop development with C++
-
.NET desktop development
-
Game development with C++
-
Windows 10/11 SDK
After installing these components, restart your computer.
If it still doesn’t work, open Epic Games Launcher, locate your Unreal Engine versions, find UE4.27, and click the Verify option.
The error happens because a recent Epic Games Launcher update modified UnrealVersionSelector.exe to look for a path that is only valid for Unreal Engine 5 (Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe). Because this subfolder structure doesn’t exist in UE4, generating project files fails or falls back to incorrect compiler binaries.
The Fix:
You can bypass this launcher bug completely by explicitly mapping the correct path in your engine configuration. Add these lines to the bottom of your Engine/Config/BaseEngine.ini (or your project’s Config/DefaultEngine.ini):
[PlatformPaths]
UnrealBuildTool=Engine/Binaries/DotNET/UnrealBuildTool.exe
After adding this configuration, delete the temporary folders (Binaries, Intermediate, .vs), regenerate the project files, and rebuild via Visual Studio. It compiles cleanly with no errors!