Search code examples
cordovawindows-store-appswindows-10visual-studio-cordovawindows-10-universal

Windows 10 Store: You cannot submit pre-compiled .NET Native packages


I'm trying to release my application targetting Windows 10 (Universal Windows) based in Cordova to existing Windows Phone 8.1 store record.

After generating app package through Store - Create App Packages I get 19 MB file named CordovaApp.Windows10_1.3.2.0_x86_x64_arm.appxbundle. Then I upload this file to App Packages and get.

CordovaApp.Windows10_1.3.2.0_x86_x64_arm.appxbundle 18.9 MB

Package acceptance validation error: You cannot submit pre-compiled .NET Native packages. Please upload the Store appxupload file and try again.

I am working with Visual Studio 2015 Update 2 Note that I have already tried to

  • Start new App record and upload Windows10 package
  • Remove referencing projects and upload package
  • Right click the project Store - Create App Packages
  • Project - Store - Create App Packages

Solution

  • I have found out that Visual Studio 2015 in order to improve performance of the app uses .NET Native compiler while Debugging. This features needs to be turned off while making the release packages. Either by explcitly in the .jsproj/.csproj

    <EnableDotNetNativeCompatibleProfile>false</EnableDotNetNativeCompatibleProfile>
    

    Or directly in project properties as described on this site: https://blogs.msdn.microsoft.com/visualstudioalm/2015/07/29/debugging-net-native-windows-universal-apps/