Microsoft 开发人员网络 > 论坛主页 > Visual Studio Setup and Installation > Visual Studio 2008 (final) installation missing tools
提出问题提出问题
 

建议的答复Visual Studio 2008 (final) installation missing tools

  • 2007年11月27日 14:17Dan Händevik 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    I installed Visual Studio 2008 (final) and started to create a WinForms (2.0) application that calls a webservice and is deployed with clickonce. When I try to compile it (after adding the webreference) I get the following build error

    C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1993,9):
    error MSB3091:
    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.


    I thought that the SDK was to be installed with VisualStudio 2008, but when looking into the SDKs folder (C:\Program Files\Microsoft Visual Studio 9.0\SDK) it contains almost nothing, only a few files in the v3.5 folder.

    When I searched for the SDK for framework 3.5 it seems that is included in the windows server 2008 platform sdk and that is only avaliable for beta2 so far...

    Regarding the registry settings, I have the SDK for v2.0 installed and since I build vs the 2.0 framework, shouldn't it look in the KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v2.0 key?

    Anyway, I came around the issue by setting the
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A InstallationFolder key to the same path as the 2.0 Sdk path and compilation was successful...

    Is the VisualStudio 2008 release not final since it seems to miss the SDK or have I been sloppy installing the product?

    http://dhvik.blogspot.com/2007/11/task-failed-because-was-not-found.html

全部回复

  • 2007年12月7日 10:57Tor Thorbergsen 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     

     

    I'm missing AL.exe

     

    C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(2083,9): error MSB3091: Task failed because "AL.exe" was not found, or the correct Microsoft Windows SDK is not installed. The task is looking for "AL.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.

     

    Under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\ I only got .NETFramework and .NETFramework\v2.0

     

    In the key "KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v2.0" I got the Value "InstallationFolder" with the value data "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\", but in that location there is no AL.exe...

     

     

    Best regards,

    Tor Thorbergsen

  • 2008年1月4日 23:29ozhug 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     

     

    Same here my install failed after installing VS2008 during installing the SDK's.

    So AL.exe could not be found

     

    I tried to repair but the SDK's are not part of the repair process.

    I found them on the disk but when you try to install from here it say's they can only be used as part of the VS2008 install (which is a complete pain)

     

    I have rebuilt this machine and will try again.

     

    Regards

     

    Mark

  • 2008年2月11日 12:08Laughing John 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    Are you looking in "C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin" ???
  • 2008年5月16日 0:59lex3001 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     

    I think I hav a similar problem... I can't publish from VS.NET 2008 because signtool.exe is missing.

     

    I look in C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin and it is EMPTY!

     

    I never had a beta VS.NET 2008 installed, just the RTM verison... any ideas on how to fix this?

  • 2008年5月22日 12:12blomkvist 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     

    I installed the Windows SDK for Windows Server 2008 and .NET Framework version 3.5 on my build machine and it fixed the problem. (My build missed the sgen.exe).

     

  • 2008年8月4日 8:04Vinix 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     建议的答复
    blomkvist said:

    I installed the Windows SDK for Windows Server 2008 and .NET Framework version 3.5 on my build machine and it fixed the problem. (My build missed the sgen.exe).

    Yeah, but install 5xx~1xxxMB of unused (for me) files is not a acceptable solution for me. :P
    I still prefer modifying the registry.

    For those who don't know how to modify the registry:

    1. copy & paste following to NotePad:
    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A]
    "InstallationFolder"="C:\\Program Files\\Microsoft Visual Studio 8\\SDK\\v2.0\\"


    Then rename the file extention to abc.reg.

    2. Double-click the file you just created then choose "Yes".

    3. You're done. :)

    • 已建议为答案cgishack 2009年1月7日 15:08
    •