Download

Packaging game server fails using Unreal Engine source build

I’m attempting to package the server version of the Unreal Shooter Game for UE 4.24.3 Win64, and am getting some strange errors relating to HoloLens (which I wasn’t even aware I was linking against).

My packaging log looks like this:


UATHelper: Packaging (Windows (64-bit)): Running AutomationTool...
UATHelper: Packaging (Windows (64-bit)): Parsing command line: -ScriptsForProject="C:/Users/Jonathan/Documents/Unreal Projects/ShooterGame/ShooterGame.uproject" BuildCookRun -nocompileeditor -nop4 -project="C:/Users/Jonathan/Documents/Unreal Projects/ShooterGame/ShooterGame.uproject" -cook -stage -archive -archivedirectory=C:/Users/Jonathan/Desktop/Server -p
ackage -ue4exe=C:\UnrealEngine\Engine\Binaries\Win64\UE4Editor-Cmd.exe -pak -prereqs -nodebuginfo -targetplatform=Win64 -build -target=ShooterGame -clientconfig=Development -utf8output -compile
UATHelper: Packaging (Windows (64-bit)): Dependencies are out of date. Compiling scripts....
UATHelper: Packaging (Windows (64-bit)): C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Windows". Check to make sure the assembly exists on disk. If this reference is required by your code, you m
ay get compilation errors. [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)): HoloLensPlatform.Automation.cs(934,12): error CS0234: The type or namespace name 'Management' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)): HoloLensPlatform.Automation.cs(934,71): error CS0234: The type or namespace name 'Management' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)): HoloLensPlatform.Automation.cs(945,63): error CS0234: The type or namespace name 'Management' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)): HoloLensPlatform.Automation.cs(957,68): error CS0234: The type or namespace name 'Management' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)): HoloLensPlatform.Automation.cs(972,66): error CS0234: The type or namespace name 'Management' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)): HoloLensPlatform.Automation.cs(1079,12): error CS0234: The type or namespace name 'Management' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)): HoloLensPlatform.Automation.cs(1079,71): error CS0234: The type or namespace name 'Management' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)): HoloLensPlatform.Automation.cs(1080,12): error CS0234: The type or namespace name 'ApplicationModel' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)): Took 2.0421273s to run MSBuild.exe, ExitCode=1
UATHelper: Packaging (Windows (64-bit)): ERROR: Failed to build "C:/UnrealEngine/Engine/Programs/AutomationTool/Saved\UATTempProj.proj":
UATHelper: Packaging (Windows (64-bit)): C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Windows". Check to make sure the assembly exists on disk. If this reference is required by your code,
you may get compilation errors. [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)): HoloLensPlatform.Automation.cs(934,12): error CS0234: The type or namespace name 'Management' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)): HoloLensPlatform.Automation.cs(934,71): error CS0234: The type or namespace name 'Management' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)): HoloLensPlatform.Automation.cs(945,63): error CS0234: The type or namespace name 'Management' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)): HoloLensPlatform.Automation.cs(957,68): error CS0234: The type or namespace name 'Management' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)): HoloLensPlatform.Automation.cs(972,66): error CS0234: The type or namespace name 'Management' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)): HoloLensPlatform.Automation.cs(1079,12): error CS0234: The type or namespace name 'Management' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)): HoloLensPlatform.Automation.cs(1079,71): error CS0234: The type or namespace name 'Management' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)): HoloLensPlatform.Automation.cs(1080,12): error CS0234: The type or namespace name 'ApplicationModel' does not exist in the namespace 'Windows' (are you missing an assembly reference?) [C:\UnrealEngine\Engine\Source\Programs\AutomationTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (Windows (64-bit)):
UATHelper: Packaging (Windows (64-bit)): (see C:\UnrealEngine\Engine\Programs\AutomationTool\Saved\Logs\Log.txt for full exception trace)
PackagingResults: Error: Failed to build "C:/UnrealEngine/Engine/Programs/AutomationTool/Saved\UATTempProj.proj":
UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults: Error: Unknown Error

I’m a bit confused because I used to be able to run the packaging process fine, so something must have gone wrong on my system somewhere in the meantime. Is there anything that might be causing these issues?

In case it helps anyone, it seems the problem was that my Windows 10 SDK installation had broken. I reinstalled the SDK from Windows SDK archive - Windows app development and that fixed things.