'应用安装程序无法安装软件包依赖项.向开发人员询问Microsoft.VCLibs.140.00 [英] 'App installer failed to install package dependencies. Ask the developer for Microsoft.VCLibs.140.00
问题描述
我收到此错误:"应用程序安装程序无法安装软件包依赖项.向Microsoft.VCLibs.140.00.Debug软件包询问开发人员",同时在Windows10客户端中通过应用程序安装程序加载.appxbundle文件机器,但是我的(开发人员)机器中没有加载任何问题.我正在使用Visual Studio 2017进行开发.在Google中找不到任何相关内容.有人帮忙.. !!
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..!!
推荐答案
尝试将其添加到.appinstaller文件的Dependencies部分:
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>
要了解有关App Installer文件的更多信息,请访问microsoft docs: https://docs.microsoft.com/zh-我们/windows/uwp/packaging/install-related-set
To read more about App Installer file, please visit microsoft docs: https://docs.microsoft.com/en-us/windows/uwp/packaging/install-related-set
实际上,您可以通过ps1脚本安装此应用程序(从上下文菜单中运行->使用PowerShell运行):
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.
修改:
实际上,我为我找到了解决方案:如果您在Release
(而不是Debug
)中构建应用程序,则应将其包含所有必需的依赖项.因此,我认为这可能是某人的解决方法.
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.
这篇关于'应用安装程序无法安装软件包依赖项.向开发人员询问Microsoft.VCLibs.140.00的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!