如何修复“找不到引导的先决条件", Visual Studio 2010中出现警告? [英] How do I fix the "Prerequisite cannot be found for bootstrapping" warning in Visual Studio 2010?
问题描述
我正在使用:
- x64计算机上的Visual Studio 2010
- 构建Windows应用程序
- 定位.NET Framework 4客户端配置文件和x86.
- 我正在使用ClickOnce进行部署.
- 我已经安装了适用于Windows 7的Microsoft Windows SDK(7.1)".
这是我的问题:
在一个旧项目中,在项目属性中,在发布"选项卡上,先决条件..."按钮上,打开此对话框. 所有列出的前提条件带有黄色的三角形警告,指出找不到引导的前提条件".结果是ClickOnce setup.exe无法正确为用户安装必备软件.
On an old project, on the project properties, Publish tab, Prerequisites... button, I open this dialog box. All the listed prerequisites have a yellow, triangular warning, stating, "Prerequisite cannot be found for bootstrapping". The effect is that the ClickOnce setup.exe cannot correctly install the prerequisites for users.
如果我从头开始创建一个新的空项目,则前提条件"框为空.
If I create a new, empty project from scratch, the Prerequisites box is empty.
以下是有关各种文件夹的信息:
C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages
包含所有引导程序包.
C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages
contains all the bootstrap packages.
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages
包含所有引导程序包.
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages
contains all the bootstrap packages.
C:\Program Files\Microsoft SDKs\Windows\v7.1
没有没有Bootstrapper文件夹.
C:\Program Files\Microsoft SDKs\Windows\v7.1
did not have a Bootstrapper folder.
C:\Program Files (x86)\Microsoft Visual Studio 10.0\SDK
除了空的v3.5文件夹之外,什么都没有.
C:\Program Files (x86)\Microsoft Visual Studio 10.0\SDK
that has nothing in it but an empty v3.5 folder .
环境WindowsSdkDir=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\
注册表HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\GenericBootstrapper\4.0\Path
= C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages
这是我尝试过的:
我尝试将Bootstrapper文件夹从C:\Program Files\Microsoft SDKs\Windows\v7.0A\
复制到C:\Program Files\Microsoft SDKs\Windows\v7.1
,但这没什么不同.
I have tried copying the Bootstrapper folder from C:\Program Files\Microsoft SDKs\Windows\v7.0A\
to C:\Program Files\Microsoft SDKs\Windows\v7.1
but that did not make a difference.
我尝试将Bootstrapper文件夹从C:\Program Files\Microsoft SDKs\Windows\v7.0A\
复制到C:\Program Files (x86)\Microsoft Visual Studio 10.0\SDK\v4.0
.没什么不同.
I have tried copying the Bootstrapper folder from C:\Program Files\Microsoft SDKs\Windows\v7.0A\
to C:\Program Files (x86)\Microsoft Visual Studio 10.0\SDK\v4.0
. That did not make a difference.
有什么建议吗?
推荐答案
尝试一下:
- 使用引导清单生成器
- 然后将它们添加到C:\ Program Files(x86)\ Microsoft SDKs \ Windows \ v7.0A \ Bootstrapper \ Packages文件夹
- make the prerequisites with bootstrapper manifest generator
- then add them into C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages folder
如果有效,请通过评论通知.
If it works please notify by comment..
这篇关于如何修复“找不到引导的先决条件", Visual Studio 2010中出现警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!