Visual Studio 2008(最终版)安装缺少的工具 [英] Visual Studio 2008 (final) installation missing tools

查看:184
本文介绍了Visual Studio 2008(最终版)安装缺少的工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了Visual Studio 2008(最终版),并开始创建一个WinForms(2.0)应用程序,该应用程序调用Web服务并通过clickonce进行部署.当我尝试对其进行编译(添加了Webreference之后)时,出现以下构建错误

C:\ WINDOWS \ Microsoft.NET \ Framework \ v3.5 \ Microsoft.Common.targets(1993,9):错误MSB3091:
任务失败,因为"sgen.exe"找不到,或者未安装正确的Microsoft Windows SDK.该任务正在寻找"sgen.exe".在"bin"中注册表项HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Microsoft SDKs \ Windows \ v6.0A的InstallationFolder值中指定的位置下方的子目录.您可以通过执行以下任一操作来解决此问题:
1)安装用于Windows Server 2008和.NET Framework 3.5的Microsoft Windows SDK.
2)安装Visual Studio2008.
3)手动将上述注册表项设置为正确的位置.
4)将正确的位置传递到"ToolPath"窗口中.任务的参数.


我认为该SDK将与Visual Studio 2008一起安装,但是当查看SDKs文件夹(C:\ Program Files \ Microsoft Visual Studio 9.0 \ SDK)时,它将几乎不包含任何内容,在v3.5文件夹中仅包含几个文件.

当我为框架3.5搜索SDK时,似乎包含在Windows Server 2008平台sdk中,并且仅适用于beta2,因此远...

关于注册表设置,我已经安装了适用于v2.0的SDK,由于我是通过vs 2.0框架构建的,因此它不应该以键?

无论如何,我通过设置
解决了这个问题 HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Microsoft SDKs \ Windows \ v6.0A InstallationFolder键指向与2.0 SDK路径和编译成功...

VisualStudio 2008版本是否不是最终版本,因为它似乎错过了SDK,或者我草率地安装了该产品?

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

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

推荐答案

我缺少AL.exe

C:\ Windows \ Microsoft.NET \ Framework \ v3.5 \ Microsoft.Common.targets(2083,9):错误MSB3091:任务失败,因为"AL.exe"找不到,或者未安装正确的Microsoft Windows SDK.任务正在寻找"AL.exe".在"bin"中注册表项HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Microsoft SDKs \ Windows \ v6.0A的InstallationFolder值中指定的位置下方的子目录.您可以通过执行以下任一操作来解决此问题:1)安装用于Windows Server 2008和.NET Framework 3.5的Microsoft Windows SDK. 2)安装Visual Studio2008.3)手动将上面的注册表项设置为正确的位置. 4)将正确的位置传递到"ToolPath".任务的参数.

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.

在HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Microsoft SDKs \下,我只有.NETFramework和.NETFramework \ v2.0

在键" KEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Microsoft SDKs \ Windows \ v2.0 "中我得到了值"InstallationFolder"值数据为"C:\ Program Files \ Microsoft Visual Studio 8 \ SDK \ v2.0 \",但是在该位置没有AL.exe ...

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...

最好的问候,

Tor Thorbergsen


这篇关于Visual Studio 2008(最终版)安装缺少的工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆