由于缺少程序,TFS 构建失败 [英] TFS Build is failing Because of Missing Programs

查看:28
本文介绍了由于缺少程序,TFS 构建失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 TFS2010 构建一个项目. Build.TFS 驻留在它自己的服务器上,我正在尝试构建到同一台机器上的目录.服务器上没有安装 VS2010.当构建运行时它失败并给我这个错误:

I am trying to build a project using TFS2010 Build.TFS resides on its own server, and i am trying to build to a directory on the same machine. The Server does not have VS2010 installed on it. When the build runs it fails and gives me this error:

c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (1558):任务失败,因为找不到AxImp.exe",或者没有安装正确的 Microsoft Windows SDK.该任务正在注册表项 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A 的 InstallationFolder 值中指定的位置下的bin"子目录中查找AxImp.exe".您可以通过执行以下操作之一来解决该问题:1) 安装 Microsoft Windows SDK.2) 安装Visual Studio 2010. 3) 手动将上面的注册表项设置到正确的位置.4) 将正确的位置传递到任务的ToolPath"参数中.

c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (1558): Task failed because "AxImp.exe" was not found, or the correct Microsoft Windows SDK is not installed. The task is looking for "AxImp.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\v7.0A. You may be able to solve the problem by doing one of the following: 1) Install the Microsoft Windows SDK. 2) Install Visual Studio 2010. 3) Manually set the above registry key to the correct location. 4) Pass the correct location into the "ToolPath" parameter of the task.

然后我收到一大堆错误,说找不到我正在构建的项目的命名空间.但是,我不确定这是否都与上述错误有关.

Then I get a whole bunch of errors saying the namespaces of the project I am building cannot be found. I am not sure if that is all linked to the above mentioned error however.

谢谢!

推荐答案

您需要在构建服务器上运行与本地构建相同的软件.这意味着您需要 Visual Studio 2010,甚至可能需要相同版本的 Visual Studio 2010,具体取决于您要构建的内容.

You need to have the same software running on the build server as you would if building locally. This means you need Visual Studio 2010, and possibly even the same edition of Visual Studio 2010, depending on what you're trying to build.

这篇关于由于缺少程序,TFS 构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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