简体   繁体   English

Visual Studio 2008安装项目警告“找不到先决条件” .Net Framework 3.5 SP1”

[英]Visual Studio 2008 Setup Project warning “Could Not find prerequisite ”.Net Framework 3.5 SP1"

In an inherited Visual Studio 2008 setup project I have a "Launch Conditions" for ".Net Framework". 在继承的Visual Studio 2008安装项目中,我具有“ .Net Framework”的“启动条件”。

Properties Windows for condition ".Net Framework": 条件“ .Net Framework”的属性窗口:

(Name) .Net Framework (名称).Net Framework

InstallUrl http://go.microsoft.com/fwlink/?LinkId=76617 InstallUrl http://go.microsoft.com/fwlink/?LinkId=76617

Message [VSDNETMSG] 讯息[VSDNETMSG]

Verison 3.5.30729 Verison 3.5.30729

On doing a build I get the following warning: 在进行构建时,我收到以下警告:

Could not find prerequisite ".NET Framework 3.5 SP1' in path "c:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v6.0A\\Bootstrapper\\'" 在路径“ c:\\ Program Files(x86)\\ Microsoft SDKs \\ Windows \\ v6.0A \\ Bootstrapper \\'”中找不到先决条件“ .NET Framework 3.5 SP1”

I have read numerous posts (such as .net 3.5 SP1 Bootstrapper not found for Setup ) on this issue and the section "2.3.1.1 Enable Samesite for the .NET Framework 3.5 SP1 bootstrapper package" of "Visual Studio 2008 Service Pack 1 (SP1) Readme". 我已经阅读过许多关于此问题的帖子(例如, 找不到用于安装程序的.net 3.5 SP1 Bootstrapper )和“ Visual Studio 2008 Service Pack 1(SP1)的“ 2.3.1.1为.NET Framework 3.5 SP1引导程序包启用Samesite”部分)自述文件”。

All solutions involve the directory "c:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v6.0A\\Bootstrapper\\DotNetFx35SP1". 所有解决方案都涉及目录“ c:\\ Program Files(x86)\\ Microsoft SDKs \\ Windows \\ v6.0A \\ Bootstrapper \\ DotNetFx35SP1”。 The problem, I do not have this directory. 问题是,我没有这个目录。 I do not see "Microsoft .Net 3.5 SP1 in" the "Programs and Features" window either. 我也没有在“程序和功能”窗口中看到“ Microsoft .Net 3.5 SP1”。 I do see "Microsoft .Net Compact Framework 3.5" listed. 我确实看到了“ Microsoft .Net Compact Framework 3.5”。

Therefore, I conclude that I need to install ".Net 3.5 SP1". 因此,我得出结论,我需要安装“ .Net 3.5 SP1”。 I download "Net 3.5 SP1" from " https://www.microsoft.com/en-us/download/confirmation.aspx?id=22 ". 我从“ https://www.microsoft.com/en-us/download/confirmation.aspx?id=22 ”下载了“ Net 3.5 SP1”。 I attempt to run the installer and after double-clicking and selecting run, nothing happens. 我尝试运行安装程序,双击并选择运行后,什么也没有发生。

I then use the "netfx_setupverifier.exe" and it validates successfully for ".Net 3.5 SP1". 然后,我使用“ netfx_setupverifier.exe”,它成功验证了“ .Net 3.5 SP1”。

In addition, the "InstallUrl" property no longer links to an appropriate page. 此外,“ InstallUrl”属性不再链接到适当的页面。

So, I have no idea how to resolve the warning to ensure a user installing the application has the appropriate version of the ".Net framework" and if they do not, install the .Net version automatically. 因此,我不知道如何解决该警告,以确保安装应用程序的用户具有相应版本的“ .Net框架”,如果没有,请自动安装.Net版本。

Should I just remove this launch condition due to the fact that ".Net 3.5 SP1" should already be part of Windows? 由于“ .Net 3.5 SP1”应该已经是Windows的一部分,我是否应该删除此启动条件?

Those paths contain the clue - many of the prerequisites for setup projects are installed by the Windows SDK, the 6.0a version in this case. 这些路径包含线索-Windows SDK(在这种情况下为6.0a版本)安装了安装项目的许多先决条件。 It's my understanding that the 6.1 SDK is an update to 6.0a so that one will work also. 据我了解,6.1 SDK是对6.0a的更新,因此也可以使用。 It's possible that the installation of VS 2008 did not select any options related to the SDK and Redistributables, because I believe the 6.0a SDK shipped with VS 2008, or this may be what you need, 6.1: VS 2008的安装可能没有选择任何与SDK和Redistributable相关的选项,因为我相信VS 2008附带了6.0a SDK,或者您可能需要6.1:

https://www.microsoft.com/en-us/download/details.aspx?id=11310 https://www.microsoft.com/zh-cn/download/details.aspx?id=11310

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM