# Packaging game server fails using Unreal Engine source build

**URL:** <https://forums.unrealengine.com/t/packaging-game-server-fails-using-unreal-engine-source-build/153421>\
**Category:** C++\
**Tags:** unreal-engine, Engine-Source-Code, GitHub\
**Created:** [November 10, 2020, 11:12am UTC](https://forums.unrealengine.com/t/packaging-game-server-fails-using-unreal-engine-source-build/153421 "2020-11-10T11:12:24Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![X6Herbius](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@X6Herbius](https://forums.unrealengine.com/u/X6Herbius)\
**Post date:** [November 10, 2020, 11:12am UTC](https://forums.unrealengine.com/t/packaging-game-server-fails-using-unreal-engine-source-build/153421/1 "2020-11-10T11:12:24Z")

</div>

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:

```auto

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?

---

<div class="post-metadata">

**Author:** ![X6Herbius](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@X6Herbius](https://forums.unrealengine.com/u/X6Herbius)\
**Post date:** [November 11, 2020, 9:13am UTC](https://forums.unrealengine.com/t/packaging-game-server-fails-using-unreal-engine-source-build/153421/2 "2020-11-11T09:13:20Z")

</div>

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](https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/) and that fixed things.

---

<div class="post-metadata">

**Author:** ![MeloinUnreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MeloinUnreal](https://forums.unrealengine.com/u/MeloinUnreal)\
**Post date:** [September 13, 2022, 5:02pm UTC](https://forums.unrealengine.com/t/packaging-game-server-fails-using-unreal-engine-source-build/153421/3 "2022-09-13T17:02:12Z")

</div>

Confirm here as well on VS2022  
Changed Win sdk from 10.0.19 to 10.0.18 and everything become fine  
Also you can do it via Visual Studio Installer

---

<div class="post-metadata">

**Author:** ![carter7562](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@carter7562](https://forums.unrealengine.com/u/carter7562)\
**Post date:** [August 14, 2023, 7:08am UTC](https://forums.unrealengine.com/t/packaging-game-server-fails-using-unreal-engine-source-build/153421/4 "2023-08-14T07:08:12Z")

</div>

Build started…  
1\>------ Build started: Project: HoloLens.Automation, Configuration: Development Any CPU ------  
1\>C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs\AutomationTool\HoloLens\HoloLensPlatform.Automation.cs(17,15,17,25): error CS0234: The type or namespace name ‘Management’ does not exist in the namespace ‘Windows’ (are you missing an assembly reference?)  
1\>C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs\AutomationTool\HoloLens\HoloLensPlatform.Automation.cs(1235,24,1235,89): error CS0246: The type or namespace name ‘IAsyncOperationWithProgress\<,\>’ could not be found (are you missing a using directive or an assembly reference?)  
1\>C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs\AutomationTool\HoloLens\HoloLensPlatform.Automation.cs(1235,52,1235,68): error CS0246: The type or namespace name ‘DeploymentResult’ could not be found (are you missing a using directive or an assembly reference?)  
1\>C:\Documents\ue-4.27-html5-es3\Engine\Source\Programs\AutomationTool\HoloLens\HoloLensPlatform.Automation.cs(1235,70,1235,88): error CS0246: The type or namespace name ‘DeploymentProgress’ could not be found (are you missing a using directive or an assembly reference?)  
2\>------ Build started: Project: AutomationTool, Configuration: Development Any CPU ------  
2\>CSC : error CS0006: Metadata file ‘C:\Documents\ue-4.27-html5-es3\Engine\Binaries\DotNET\AutomationScripts\HoloLens\HoloLens.Automation.dll’ could not be found  
========== Build: 0 succeeded, 2 failed, 19 up-to-date, 0 skipped ==========  
========== Build started at 9:25 PM and took 04.192 seconds ==========

---

<div class="post-metadata">

**Author:** ![carter7562](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@carter7562](https://forums.unrealengine.com/u/carter7562)\
**Post date:** [August 14, 2023, 7:08am UTC](https://forums.unrealengine.com/t/packaging-game-server-fails-using-unreal-engine-source-build/153421/5 "2023-08-14T07:08:17Z")

</div>

I swapped the windows sdk in VS2022 and i am still getting the exact same problem on building AutomationTool

---

<div class="post-metadata">

**Author:** ![IPG\_MS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IPG\_MS](https://forums.unrealengine.com/u/IPG_MS)\
**Post date:** [January 29, 2024, 10:54pm UTC](https://forums.unrealengine.com/t/packaging-game-server-fails-using-unreal-engine-source-build/153421/6 "2024-01-29T22:54:10Z")

</div>

I am as well. Did you ever find a fix?

---

<div class="post-metadata">

**Author:** ![BojanV03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BojanV03](https://forums.unrealengine.com/u/BojanV03)\
**Post date:** [April 2, 2024, 11:31am UTC](https://forums.unrealengine.com/t/packaging-game-server-fails-using-unreal-engine-source-build/153421/7 "2024-04-02T11:31:15Z")

</div>

What fixed it for me is, in VIsual Studio, Solution Explorer, right click and Add Reference… on Programs-\>Automation-\>HoloLens.Automation-\>References:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/5/425102c747425e0353b6e02aab77c8af3a80af93.png)  
and in the Browse section, which was initially an empty list, click on browse:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/0/e/80e13725e5e068c23ddc3a992330bf06f95287d2.png)  
and locate the Windows.winmd file from the desired Windows SDK.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/5/7e5c966a1b9cdceb7cc837177a6a8377c74522c9.png)  
Note - You will need to change the file type to All Files, and by default installation they are usually located in C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.20348.0 or similar folder.

Hope this helps 🙂

---

<div class="post-metadata">

**Author:** ![VelvetBlanche](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VelvetBlanche](https://forums.unrealengine.com/u/VelvetBlanche)\
**Post date:** [August 27, 2024, 2:42pm UTC](https://forums.unrealengine.com/t/packaging-game-server-fails-using-unreal-engine-source-build/153421/8 "2024-08-27T14:42:35Z")

</div>

This solved my problem. How did you work it out bro, it’s amazing.

---

<div class="post-metadata">

**Author:** ![Jonencloud](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jonencloud](https://forums.unrealengine.com/u/Jonencloud)\
**Post date:** [October 17, 2024, 9:43pm UTC](https://forums.unrealengine.com/t/packaging-game-server-fails-using-unreal-engine-source-build/153421/9 "2024-10-17T21:43:22Z")

</div>

Hats off to you, I hadn’t a clue how to go about troubleshooting this one

---

<div class="post-metadata">

**Author:** ![Rag1804](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rag1804](https://forums.unrealengine.com/u/Rag1804)\
**Post date:** [March 25, 2025, 8:47am UTC](https://forums.unrealengine.com/t/packaging-game-server-fails-using-unreal-engine-source-build/153421/10 "2025-03-25T08:47:30Z")

</div>

You are Genius 🙂
