UWP - AutomationTool exiting with ExitCode=1 (Error_Unknown)

Hi,
I’m trying to deploy my game on Microsoft Store, so I’ve found that I have to donwload another version of Unreal Engine that supports exporting to UWP from GitHub.
Well, I’ve downloaded it, installed as described and I’ve tried to package new FPS game from teplate. The problem is that it won’t package.

This is the output:

UATHelper: Packaging (UWP (x64-64bit)): Running AutomationTool...
UATHelper: Packaging (UWP (x64-64bit)): Parsing command line: -ScriptsForProject="D:/Documents/Unreal Projects/UWP/UWP.uproject" BuildCookRun -nocompileeditor -nop4 -project="D:/Documents/Unreal Projects/UWP/UWP.uproject" -cook -stage -archive -archivedirectory="D:/Documents/Unreal Projects/UWP/pkgNew folder" -package -clientconfig=Development -ue4exe=UE4Edi
tor-Cmd.exe -pak -prereqs -nodebuginfo -targetplatform=UWP64 -build -utf8output -compile
UATHelper: Packaging (UWP (x64-64bit)): Compiling scripts.
UATHelper: Packaging (UWP (x64-64bit)):     DotNETUtilities -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\DotNETUtilities.dll
UATHelper: Packaging (UWP (x64-64bit)):     UnrealBuildTool -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\UnrealBuildTool.exe
UATHelper: Packaging (UWP (x64-64bit)):     AutomationUtils.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationUtils.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):     AllDesktop.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\AllDesktop\AllDesktop.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):     Localization.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\Localization.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):     OneSkyLocalization.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\OneSkyLocalization.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):     AutomationScripts.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\AutomationScripts.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):     Android.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\Android\Android.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):     BuildGraph.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\BuildGraph.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):     HTML5.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\HTML5\HTML5.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):     MobileDeviceInterface -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\IOS\MobileDeviceInterface.dll
UATHelper: Packaging (UWP (x64-64bit)):     IOS.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\IOS\IOS.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):     Linux.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\Linux\Linux.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):     Mac.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\Mac\Mac.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):     TVOS.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\TVOS\TVOS.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):   D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(2052,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "WindowsDevicePortalWrapper". Check to make sure the assembly exists on disk. If this reference is required b
y your code, you may get compilation errors. [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):   UWPPlatform.Automation.cs(215,63): error CS0234: The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):   UWPPlatform.Automation.cs(215,120): error CS0234: The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):   UWPPlatform.Automation.cs(215,190): error CS0234: The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):   UWPPlatform.Automation.cs(246,65): error CS0234: The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):   UWPPlatform.Automation.cs(246,122): error CS0234: The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):   UWPPlatform.Automation.cs(246,192): error CS0234: The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):   UWPPlatform.Automation.cs(194,50): error CS0234: The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):   UWPPlatform.Automation.cs(187,13): error CS0234: The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):   UWPPlatform.Automation.cs(925,50): error CS0234: The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):   UWPPlatform.Automation.cs(925,107): error CS0234: The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):   UWPPlatform.Automation.cs(937,50): error CS0234: The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):   UWPPlatform.Automation.cs(937,107): error CS0234: The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):     Win.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\Win.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):     XLocLocalization.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\XLocLocalization.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)): Took 3.5013288s to run MSBuild.exe, ExitCode=1
UATHelper: Packaging (UWP (x64-64bit)): ERROR: Failed to build "D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\Scripts\UAT.proj":
UATHelper: Packaging (UWP (x64-64bit)):          DotNETUtilities -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\DotNETUtilities.dll
UATHelper: Packaging (UWP (x64-64bit)):          UnrealBuildTool -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\UnrealBuildTool.exe
UATHelper: Packaging (UWP (x64-64bit)):          AutomationUtils.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationUtils.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):          AllDesktop.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\AllDesktop\AllDesktop.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):          Localization.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\Localization.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):          OneSkyLocalization.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\OneSkyLocalization.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):          AutomationScripts.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\AutomationScripts.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):          Android.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\Android\Android.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):          BuildGraph.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\BuildGraph.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):          HTML5.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\HTML5\HTML5.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):          MobileDeviceInterface -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\IOS\MobileDeviceInterface.dll
UATHelper: Packaging (UWP (x64-64bit)):          IOS.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\IOS\IOS.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):          Linux.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\Linux\Linux.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):          Mac.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\Mac\Mac.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):          TVOS.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\TVOS\TVOS.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):        D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(2052,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "WindowsDevicePortalWrapper". Check to make sure the assembly exists on disk. If this reference is requi
red by your code, you may get compilation errors. [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):        UWPPlatform.Automation.cs(215,63): error CS0234: The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):        UWPPlatform.Automation.cs(215,120): error CS0234: The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):        UWPPlatform.Automation.cs(215,190): error CS0234: The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):        UWPPlatform.Automation.cs(246,65): error CS0234: The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):        UWPPlatform.Automation.cs(246,122): error CS0234: The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):        UWPPlatform.Automation.cs(246,192): error CS0234: The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):        UWPPlatform.Automation.cs(194,50): error CS0234: The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):        UWPPlatform.Automation.cs(187,13): error CS0234: The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):        UWPPlatform.Automation.cs(925,50): error CS0234: The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):        UWPPlatform.Automation.cs(925,107): error CS0234: The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):        UWPPlatform.Automation.cs(937,50): error CS0234: The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):        UWPPlatform.Automation.cs(937,107): error CS0234: The type or namespace name 'Tools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\UWP\UWP.Automation.csproj]
UATHelper: Packaging (UWP (x64-64bit)):          Win.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\Win.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):          XLocLocalization.Automation -> D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Binaries\DotNET\AutomationScripts\XLocLocalization.Automation.dll
UATHelper: Packaging (UWP (x64-64bit)):        
UATHelper: Packaging (UWP (x64-64bit)):        (see D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Programs\AutomationTool\Saved\Logs\UAT_Log.txt for full exception trace)
UATHelper: Packaging (UWP (x64-64bit)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (UWP (x64-64bit)): BUILD FAILED
PackagingResults: Error: Failed to build "D:\UnrealEngineUWP\MICROSOFT_UWP_UNREAL\Engine\Source\Programs\AutomationTool\Scripts\UAT.proj":
PackagingResults: Error: Unknown Error

I’ve tried to re-build the entire Unreal Engine but with no luck.

Thanks in advance for any suggestions.

Hi, I have the same problem here.
Can you solve this problem?

Open Project in visual studio, select UWP.Automation from the right, then Project > Manage NugetPackages and install WindowsDevicePortalWrapper

That fixed it for me, thank you so much!!
I added a screenshot on how to do that

1 Like

I have the same problem.

PackagingResults: Error: Failed to build “C:\Program Files\Epic Games\UE_4.22_source\Engine\Source\Programs\AutomationTool\Scripts\UAT.proj”:
PackagingResults: Error: Unknown Error

However, after opening the project in Visual Studio, I noticed that I am missing UWP.Automation from under the Programs folder in the Solution Explorer.

It should be just under TVOS.Automation, however, in my case, it is not.

Running from UE 4.22 built from source.

If I switch engine version to the 4.22.1 installed from Epic Launcher, the packaging succeeds, however, not from 4.22 (production) built from source, which I need it to, in order to connect to the same version of the game’s server built from the same engine branch.

Any suggestions, please?

Soljenitin.

How did you manage to get the UWP onto UE_4.22? The one i got from github is 4.19 and I have already started a game in 4.22. The last thing i want to do id have to redo all my. Can you please advise me. Thanks

SOLUTION:
Older Visual Studio versions are known to cause problems with Unreal Engine.

Just open the project with the newest Visual Studio 2019 and you should get a message like: “Install … for Unreal Engine Automation tool” etc. just hit “install” and let Visual Studio download the missing parts.

Voilà, packaging works fine now.