How to add Microsoft.NET.CoreRuntime.2.1 for UWP package installer?

不想你离开。 提交于 2019-12-02 02:24:07

The reason why you are asked to install the dependencies is that your UWP app have a dependency requirement for them but your current Device OS doesn't install these dependencies. If you install your app from the Microsoft Store, the Store will check your app requirments and automatically install the dependencies that your app need but are not installed.

For your issue, you are sideloading your UWP app, since there is no a process as Store to install the dependencies that your app need but are not installed in current device, so you will need to install the dependency manully.

Generally, you can find the dependencies in the Dependencies folder from the corresponding version package's folder (same file path as your appx file). You should install the corresponding dependencies base on your device and the your UWP App appx platform.

--- Update ---

If you want to install the app using PowerShell, you still need to install the dependencies. You can use the Add-AppxPackage cmdlet to add a signed app package to a user account and use the DependencyPath parameter to add all other packages that are required for the installation of the app package. See the topic Add-AppxPackage and the Example 1: Add an app package to install the app and dependencies.

PS C:\> Add-AppxPackage -Path "C:\Users\user1\Desktop\MyApp.appx" -DependencyPath "C:\Users\user1\Desktop\Microsoft.NET.CoreRuntime.2.1.appx"
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!