本文介绍了Windows 10应用商店:您无法提交预编译的.NET本机包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图发布将基于Cordova的Windows 10(通用Windows)定位到现有Windows Phone 8.1存储记录的应用程序.

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

通过商店生成应用程序包-创建应用程序包后,我得到了19 MB的文件,名为CordovaApp.Windows10_1.3.2.0_x86_x64_arm.appxbundle.然后,我将此文件上传到App Packages并获取.

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.

我正在使用Visual Studio 2015 Update 2请注意,我已经尝试过

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

  • 开始新的应用记录并上传Windows10软件包
  • 删除引用项目并上传软件包
  • 右键单击项目商店-创建应用程序包
  • 项目-商店-创建应用程序包

推荐答案

我发现,为了提高应用程序的性能,Visual Studio 2015在调试时使用.NET Native编译器.在制作发行包时,需要关闭此功能.可以通过.jsproj/.csproj

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>

或直接在此网站上描述的项目属性中: https://blogs.msdn.microsoft.com/visualstudioalm/2015/07/29/debugging-net-native-windows-universal-apps/

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/

这篇关于Windows 10应用商店:您无法提交预编译的.NET本机包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 13:43