在使用Visual Studio 2008专业版构建项目时,出现了以下错误:
“sgen.exe”未找到或未安装正确的Microsoft Windows SDK。该任务正在寻找“sgen.exe”,它位于注册表键HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A的InstallationFolder值指定的位置下的“bin”子目录中。您可以通过执行以下操作之一来解决此问题: 1. 安装Microsoft Windows SDK for Windows Server 2008和.NET Framework 3.5。 2. 安装Visual Studio 2008。 3. 手动设置上述注册表键的正确位置。 4. 将正确的位置传递到任务的“ToolPath”参数中。
我尝试下载Microsoft Windows SDK for Windows Server 2008和.NET Framework 3.5,但仍然出现了错误。我还尝试下载Windows 7 SDK和.NET Framework 3.5,但结果仍然相同。
我还尝试手动编辑注册表以更改InstallationFolder,以及尝试修复Visual Studio的安装。
该项目最初是在Windows XP上创建的,现在我正在运行Windows 7企业版的重新格式化机器上编译。
“sgen.exe”未找到或未安装正确的Microsoft Windows SDK。该任务正在寻找“sgen.exe”,它位于注册表键HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A的InstallationFolder值指定的位置下的“bin”子目录中。您可以通过执行以下操作之一来解决此问题: 1. 安装Microsoft Windows SDK for Windows Server 2008和.NET Framework 3.5。 2. 安装Visual Studio 2008。 3. 手动设置上述注册表键的正确位置。 4. 将正确的位置传递到任务的“ToolPath”参数中。
我尝试下载Microsoft Windows SDK for Windows Server 2008和.NET Framework 3.5,但仍然出现了错误。我还尝试下载Windows 7 SDK和.NET Framework 3.5,但结果仍然相同。
我还尝试手动编辑注册表以更改InstallationFolder,以及尝试修复Visual Studio的安装。
该项目最初是在Windows XP上创建的,现在我正在运行Windows 7企业版的重新格式化机器上编译。