本文介绍了对 .Net Native 的依赖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

提交到应用商店时出现以下认证错误.

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

[My App Name] 依赖于 Microsoft .Net Native Runtime Package 1.x 框架,但在清单中缺少框架依赖声明.[My App Name] 依赖于 Microsoft .Net Native Framework Package 1.x 框架,但在清单中缺少框架依赖声明.

[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.

如何在 appxmanifest 中提供这种依赖?语法是什么?

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

我目前有这个:

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

推荐答案

刚刚遇到了类似的问题.尝试将 PackageDependency 行添加到 Package.appmanifest:

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>

参见:使用 Visual Studio 2015 Update 3 创建的 UWP 应用程序包不会安装在手机上

这篇关于对 .Net Native 的依赖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 19:06