问题描述
你好,
我有一个构建服务器,它是一台64位计算机.它安装了TFS 2010 Build Service.我配置了2个构建代理和1个控制器.我们的其中一个项目已转换为VS2012.
I have a Build server which is a 64bit machine. It has TFS 2010 Build Service installed. I have 2 Build Agents and 1 Controllers configured. One of our projects have been converted to VS2012.
但是当项目在构建服务器上构建时,出现以下错误:
But when the project is building on the build server i get the following error:
解决方案当前不支持版本'12 .00'".
在尝试对解决方案文件运行MSBuild之前,会发生此错误.
This error occurs before it attempts to run MSBuild against the solution file.
我发现.NET Framework 4.5附带了MSBuild的新版本,即4.5版.
我在Build服务器上安装了.NET Framework 4.5.安装.NET Framework 4.5之后,我仍然遇到相同的问题.
我该怎么解决呢?
我是否必须将生成代理配置为使用新的MSBuild 4.5才能生成此特定项目,还是必须在csproj文件本身中进行设置?如果可以的话怎么办?
I found out that .NET framework 4.5 comes with new version of MSBuild which is version 4.5.
I installed .NET framework 4.5 on the Build server. After i installed .NET framework 4.5 i still run into the same issue.
How could i go about resolving this?
Do i have to configure the Build Agent to use the new MSBuild 4.5 in order to build this particular project or do i have to set something in the csproj files itself? if so how?
I would really appreciate if somebody could assist me with this please?
推荐答案
如果要在TFS构建代理计算机中构建项目,则需要确保该构建代理计算机具有与开发计算机相同的软件环境.
If you would like to build project in TFS build agent machine, you need to make sure that the build agent machine has the same software environment as your development machine.
如果该解决方案是在VS2012中开发的,仅安装.NET 4.5是不够的,那么您还需要安装VS2012.
If the solution is developed in VS2012, just have .NET 4.5 installed is not enough, you also need VS2012 installed as well.
顺便问一下,您想构建什么样的项目?
By the way, what kind of project would you like to build?
我们将为您提供成功构建项目所需的最低必备软件环境.
We will suggest you the minimum pre-required software environment to successfully build your projects.
最好的问候,
这篇关于MSBuild错误-解决方案的版本为12.00,目前尚不支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!