我最近安装了一些 windows/visual studio 2017 更新,现在当我创建我的 UWP 应用程序包并尝试将它部署到它曾经工作正常的任何机器时 - 安装失败并且有Windows 错误日志中的此错误消息:
AppX Deployment operation failed for package 92211ab1-5481-4a1a-9111-a3dd87b81b72_1.0.26.0_neutral_~_n78qa84z3g9aj with error 0x80073CF3. The specific error text for this failure is: Windows cannot install package 92211ab1-5481-4a1a-9111-a3dd87b81b72_1.0.26.0_x86__n78qa84z3g9aj because this package depends on a framework that could not be found. Provide the framework "Microsoft.NET.Native.Runtime.1.7" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x86 processor architecture and minimum version 1.7.25531.0, along with this package to install. The frameworks with name "Microsoft.NET.Native.Runtime.1.7" currently installed are: {}
我在网上找不到任何关于这个包的引用。
该软件包在开发机器上安装得很好。
如有任何帮助,我们将不胜感激。
编辑 1:
最佳答案
UWP Deployment Microsoft.NET.Native.Runtime.1.7 not found
问题是在当前操作系统中没有Microsoft.NET.Native.Runtime.1.7
依赖。您可以手动安装 Microsoft.NET.Native.Runtime.1.7
依赖项。
Microsoft.NET.Native.Runtime.1.7
依赖会存放在appx文件夹下的Dependencies
文件夹中。
更新1
我已经查看了您的屏幕截图。看起来你在 Debug模式下生成了你的包,我可以用这种方式重现相同的依赖关系。 .NET Native 工具链在 Release模式下默认被勾选。因此,您可以在 Release模式 中重新生成您的包以获取上面的文件。
关于deployment - UWP 部署 Microsoft.NET.Native.Runtime.1.7 未找到错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47127375/