如何创建随 Microsoft.NET.CoreRuntime.1.0 一起运送的 UWP 包
How to create a UWP Package that`s shipping Microsoft.NET.CoreRuntime.1.0 with it
我正在努力解决以下问题:
我尝试使用移动设备管理系统 (MobileIron) 部署我的 uwp 应用程序。它只接受 .appxbundle,不接受 .appxupload 文件。当我尝试 install/deploy 设备上的应用程序时,出现错误
Can not install package XY because the package xy has a dependency to Microsoft.NET.CoreRuntime.1.0. This package is needed for the installation. Deploy this Framework together with your package
(我的自定义翻译;))
问题是,我不知道如何创建一个包,其中包含所需的 CoreRuntime。当我创建 DEBUG 包时,我得到一个 appxbundle 和一个缺少 CoreRuntime.appx 的文件夹,但只有 powershell 脚本将 CoreRuntime Framework 发送到设备,而不是包本身。
当我创建一个 RELEASE 包时,它是 运行 agains .NET Native,在这种情况下我没有 CoreRuntime...
希望我足够好地解释我的问题,并且有人可以帮助我或帮助我。
您需要启用 .NET Native,从您的项目属性:
确保您的配置适用于 Release。并检查
Compile with .NET Native tool chain
和
Optimize code
最后确保从 Store->Create App Packages 创建您的包。使用以下配置:
我正在努力解决以下问题:
我尝试使用移动设备管理系统 (MobileIron) 部署我的 uwp 应用程序。它只接受 .appxbundle,不接受 .appxupload 文件。当我尝试 install/deploy 设备上的应用程序时,出现错误
Can not install package XY because the package xy has a dependency to Microsoft.NET.CoreRuntime.1.0. This package is needed for the installation. Deploy this Framework together with your package
(我的自定义翻译;))
问题是,我不知道如何创建一个包,其中包含所需的 CoreRuntime。当我创建 DEBUG 包时,我得到一个 appxbundle 和一个缺少 CoreRuntime.appx 的文件夹,但只有 powershell 脚本将 CoreRuntime Framework 发送到设备,而不是包本身。 当我创建一个 RELEASE 包时,它是 运行 agains .NET Native,在这种情况下我没有 CoreRuntime...
希望我足够好地解释我的问题,并且有人可以帮助我或帮助我。
您需要启用 .NET Native,从您的项目属性:
确保您的配置适用于 Release。并检查
Compile with .NET Native tool chain
和
Optimize code
最后确保从 Store->Create App Packages 创建您的包。使用以下配置: