Dependency on .Net Native

纵然是瞬间 提交于 2019-12-02 00:55:14

问题


I got the following certification error when submitting to the app store.

[My App Name] takes a dependency on Microsoft .Net Native Runtime Package 1.x framework but is missing the framework dependency declaration in the manifest. [My App Name] takes a dependency on Microsoft .Net Native Framework Package 1.x framework but is missing the framework dependency declaration in the manifest.

How does one provide this dependency in the appxmanifest? What's the syntax?

I have this currently:

<Dependencies>
    <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
</Dependencies>

回答1:


I had the same error, and I found that ticking "Optimise Code" in build options made it go away.
I find that with Microsoft poke-and see is the most reliable technique.




回答2:


Just had a similar issue. Try adding a PackageDependency line to the Package.appmanifest:

<Dependencies>
  <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
  <PackageDependency Name="Microsoft.NET.Native.Runtime.1.4" MinVersion="1.4.24201.0" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" />
</Dependencies>

See: UWP App Package created with Visual Studio 2015 Update 3 won't install on phone



来源:https://stackoverflow.com/questions/35782063/dependency-on-net-native

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!