Unreal Engine 5 C++: Section 3-44. Compiling a C++ Project

Here’s how I solved it:

  1. Open Visual Studio Installer and search for “MSVC x64 14.38” in [Modify] → [Individual Components].
  2. Select Build Tools and install it.

In Compiling issue. UE5.3 - #2 by DanM, I added the following code, which caused a new error, so I modified it and then reverted it back to the original, and the execution was completed successfully. * Running task in folder UE_5.4: Engine\Build\BatchFiles\Build.bat ObstacleAssaultEditor Win64 Development ‘E:\Unreal Projects\ObstacleAssault\ObstacleAssault.uproject’ -waitmutex

Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet “…\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” ObstacleAssaultEditor Win64 Development “E:\Unreal Projects\ObstacleAssault\ObstacleAssault.uproject” -waitmutex
C:\Users\PC\AppData\Roaming\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml(4): error: Unexpected XML declaration. The XML declaration must be the first node in the document, and no whitespace characters are allowed to appear before it. Line 4, position 3.
Failed to properly read XML file : C:\Users\PC\AppData\Roaming\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml

Terminal process “C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command Engine\Build\BatchFiles\Build.bat ObstacleAssaultEditor Win64 Development ‘E:\Unreal Projects\ObstacleAssault\ObstacleAssault.uproject’ -waitmutex” exited with exit code: 1.

Terminal is being reused for a task. Press any key to close it.
%APPDATA%\Unreal Engine\UnrealBuildTool\

<?xml version="1.0" encoding="utf-8"?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
 <WindowsPlatform>
 <CompilerVersion>14.38.33130</CompilerVersion>
 </WindowsPlatform>
</Configuration>

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