I am trying to package up my game so I can put it into the windows store. It builds and runs (with a lot of warnings). But when I go to package it, that fails with 1 error and 305 warnings.
I have tried both D3D and XAML builds with the same results.
There is an MSDN forum thread where people have had the same problem, none of the solutions will work for me though as I don’t have any of the files mentioned.
My Unity version is 2017.3.1f1
Using Visual Studio 2017
Here is the error message:
APPX1606 All languages specified in the Language attribute of the Resource element in the app manifest must be supported by the Windows Store. The value of the Resource element is comprised of the value from the Default Language field in the App Manifest Designer and a generated the list of languages based on localized resources in the project. The list of Windows Store app languages is available at App package requirements for MSIX app - Windows apps | Microsoft Learn.
And warning Messages (sample)
Warning MSB4011 “C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props” cannot be imported again. It was already imported at “C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)”. This is most likely a build authoring error. This subsequent import will be ignored.
I changed the csproj, added the two lines of xml suggested. recompiled and get the same errors. Tried it with ILTOCPP (or whatever its called) scripting engine, tried it with the .net scripting backend.
I have the same error message when building my game in vs.
APPX1606
It was fine yesterday, only added baked gi and now I have this error message. I have a copy of my project before I baked my scene gi and it is building fine.
The fixes landed to Unity 2018.1.6f1 and 2017.4.7f1. These will be released soon. However, there one more piece to the fix: it needs to be fixed in Visual Studio as well. I’m not exactly sure which VS update the fix will land to, but I’m trying to find out.
I actually got this to compile once and the store knocked it back because for icons (even though I had every possible icon).
If you compile with XAML
Severity Code Description Project File Line Suppression State
Error The mapping file can’t be parsed. The error occurs at line 4794. XXX C:\Users\XXX\Documents\Unity Projects\XXX\Builds\UWP2\XXX\MakeAppx
Error 0x8007000b - An attempt was made to load a program with an incorrect format. XXX C:\Users\XXX\Documents\Unity Projects\XXX\Builds\UWP2\XXX\MakeAppx
Error You can’t add both “C:\Users\XXX\Documents\Unity Projects\XXX\Builds\UWP2\XXX\obj\x86\Master\PackageUploadLayout\Data\boot.config” and “C:\Users\XXX\Documents\Unity Projects\XXX\Builds\UWP2\XXX\obj\x86\Master\PackageLayout\Data\boot.config” to the output file as “Data\boot.config”. XXX C:\Users\XXX\Documents\Unity Projects\XXX\Builds\UWP2\XXX\MakeAppx
Error Package creation failed. XXX C:\Users\XXX\Documents\Unity Projects\XXX\Builds\UWP2\XXX\MakeAppx