Visual Studio 2008 (final) installation missing tools
- 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
所有回覆
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
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
- Are you looking in "C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin" ???
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?
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).
- 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日 下午 03:08

