简体   繁体   English

TFS 2010 Build - 我是否需要在TFS 2010 Build Server上安装Visual Studio 2010

[英]TFS 2010 Build - Do I need to install Visual Studio 2010 on TFS 2010 Build Server

I have the following error on the build server for code that compiles and passes tests fine locally. 我在构建服务器上有以下错误,代码编译并在本地传递测试。

(150): The imported project "C:\\Program Files\\MSBuild\\Microsoft\\VisualStudio\\v10.0\\WebApplications\\Microsoft.WebApplication.targets" was not found. (150):找不到导入的项目“C:\\ Program Files \\ MSBuild \\ Microsoft \\ VisualStudio \\ v10.0 \\ WebApplications \\ Microsoft.WebApplication.targets”。 Confirm that the path in the declaration is correct, and that the file exists on disk. 确认声明中的路径是否正确,以及该文件是否存在于磁盘上。

I've added the WebApplications folder from my local machine to the appropriate path on the build server but I'm still getting the same error on build. 我已将本地计算机上的WebApplications文件夹添加到构建服务器上的相应路径,但我仍然在构建时遇到相同的错误。

I believe the recommended approach with TFS2008 was to install VS2008 in it's entirety on the build server. 我相信TFS2008的推荐方法是在构建服务器上完整安装VS2008。 Is this still the case with TFS2010 and VS2010 accordingly? 相应的TFS2010和VS2010仍然如此吗? aka Sledgehammer to crack a nut. 又名大锤要破解坚果。

Pretty much, especially if you plan on using other features like MSTest. 差不多,特别是如果你打算使用像MSTest这样的其他功能。 You can try just adding the targets file but you'll probably still have some missing dependencies. 您可以尝试添加目标文件,但您可能仍会有一些缺少的依赖项。 You could go through the whole process of fixing the dependencies as you go along but it's probably easier just to install VS 2010 and be done with it. 您可以在整个过程中完成修复依赖项的过程,但是安装VS 2010并完成它可能更容易。

This blog post seems to describe a way to do what you want without having to install additional software on the build server, if all you need is the .net compilers. 这篇博客文章似乎描述了一种方法来做你想要的,而不必在构建服务器上安装其他软件,如果你需要的只是.net编译器。 It does not cover C++ compiler setup. 它不包括C ++编译器设置。

I discovered that if you're going to do just "standard" (i realize that's open to interpretation) web apps and non-web apps (eg services), you can get away with installing just Visual Studio 2010 Shell, plus Visual Studio 2010 SP1 on the build server. 我发现,如果你要做的只是“标准”(我意识到这是开放的解释)网络应用程序和非网络应用程序(例如服务),你可以安装Visual Studio 2010 Shell和Visual Studio 2010构建服务器上的SP1。 That will get you the missing .targets files. 这将为您提供缺少的.targets文件。

Since a full VS install is required for advanced features, does anyone know if the build-server-install license cost is waived? 由于高级功能需要完整的VS安装,是否有人知道是否免除了构建服务器安装许可证成本?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM