gpt4 book ai didi

visual-studio-2008 - 任务失败,因为找不到 "sgen.exe"

转载 作者:行者123 更新时间:2023-12-04 22:01:58 25 4
gpt4 key购买 nike

尝试在 Visual Studio 2008 专业版中构建我的项目时出现以下错误:

Task failed because “sgen.exe” was not found, or the correct Microsoft Windows SDK is not installed. The task is looking for “sgen.exe” in the “bin” subdirectory beneath the location specified in the InstallationFolder value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A. You may be able to solve the problem by doing one of the following:

  1. Install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5.
  2. Install Visual Studio 2008.
  3. Manually set the above registry key to the correct location.
  4. Pass the correct location into the “ToolPath” parameter of the task.


我尝试下载适用于 Windows Server 2008 和 .NET Framework 3.5 的 Microsoft Windows SDK,但仍然出现错误。我还尝试下载 Windows 7 SDK 和 .NET Framework 3.5,但结果仍然相同。

我还尝试手动编辑注册表以更改 InstallationFolder,并尝试修复 Visual Studio 安装。

该项目最初是在 Windows XP 上创建的,我正在尝试在运行 Windows 7 Enterprise 的重新格式化的机器上进行编译。

最佳答案

复制/y “C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\sgen.exe” “C:\WINDOWS\Microsoft.NET\Framework\v3.5\”

看说明here :

关于visual-studio-2008 - 任务失败,因为找不到 "sgen.exe",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1302225/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com