Search code examples
c#winrt-xamlwindows-storewindows-10-mobile

How to generate .appxupload file?


I am trying to build a package for Release on ARM CPU.

When I built it with "Compile with .NET Native tool chain" checked, the package failed to build and threw me an error which states error : ILT0021: Could not resolve method 'System.Nullable<System.Double> $95_Windows.Graphics.Display.DisplayInformation.get_DiagonalSizeInInches()'.

When I built it with "Compile with .NET Native tool chain" unchecked, there are no error and the package were successfully created, BUT the compiler generates the .appx file. For Windows Store to accept the app package, the package have to be .appxupload.

I am supposed to upload the app package today, anybody have ever experienced this kind of problem? If so, please teach me how to solve this. Thank you in advance.

Just in case this helps, here is my extensions/external libraries; -AdDuplexWin10, -Analyzers, -Microsoft.NETCore.UniversalWindowsPlatform, -Universal Windows, -Windows Mobile Extensions for the UWP

And, I did not use Template10.


Solution

  • I have updated my Visual Studio, what has changes is that I can change Project > App Properties > Application > Target Version to "Build 10586" from "Build 10240". After done all these, I can build the package successfully. It seems that the error : ILT0021: Could not resolve method 'System.Nullable<System.Double> $95_Windows.Graphics.Display.DisplayInformation.get_DiagonalSizeInInches() is only for the build 10240... I hope this problem will not rise again :)