'App installer failed to install package dependencies. Ask the developer for Microsoft.VCLibs.140.00

守給你的承諾、 提交于 2020-01-13 08:50:47

问题


screenshot of the error

I am getting this error:"App installer failed to install package dependencies.Ask the developer for Microsoft.VCLibs.140.00.Debug package" while side loading .appxbundle file via App installer in windows10 client machine, however the same was sideloaded in my (developer) machine without any issue. I am using Visual Studio 2017 for development. Couldn't find anything relevant in google. Somebody help..!!


回答1:


Try to add it to Dependencies section into .appinstaller file:

<Dependencies>
    <Package Name="Microsoft.VCLibs.140.00" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" Version="14.0.24605.0" ProcessorArchitecture="x86" Uri="http://foobarbaz.com/fwkx86.appx" />
    <Package Name="Microsoft.VCLibs.140.00" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" Version="14.0.24605.0" ProcessorArchitecture="x64" Uri="http://foobarbaz.com/fwkx64.appx" />
</Dependencies>

To read more about App Installer file, please visit microsoft docs: https://docs.microsoft.com/en-us/windows/uwp/packaging/install-related-set

Actually, you can install this application via ps1 script (run it from context menu -> Run with PowerShell):

It has already created script which will install all of dependencies.

Edit: Actually, I found solution for me: if you build the app in Release (instead of Debug) it should be contain all of needed dependencies into itself. So, I think it could be some kind of workaround for somebody.




回答2:


"App installer failed to install package dependencies. Ask the developer for Microsoft.VCLibs.140.00.Debug package"

From this prompt, we can know that this can be fixed by installing this Microsoft.VCLibs.140.00.Debug package. Usually, you can find it in your completed package. So you may install this file independently.

Or you could package your app under Release mode and then sideload the new file in this new package to your client machine.



来源:https://stackoverflow.com/questions/48317487/app-installer-failed-to-install-package-dependencies-ask-the-developer-for-mic

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