Teamcity没有使用正确的MSbuild版本 [英] Teamcity not using the right MSbuild version
问题描述
仅安装了TC的新版本,似乎没有使用正确的MSbuild版本进行部署.
Just installed a new version of TC and it seems not to be using the right MSbuild version for deployment.
C:\ TeamCity \ buildAgent \ work \ 3378319287fedcd4 \ Source \ UI \ OneBody.Web \ OneBody.Web.csproj(927,3):错误MSB4019:导入的项目"C:\ Program Files(x86)\ MSBuild找不到"\ Microsoft \ VisualStudio \ v11.0 \ WebApplications \ Microsoft.WebApplication.targets".确认声明中的路径正确,并且文件在磁盘上.
C:\TeamCity\buildAgent\work\3378319287fedcd4\Source\UI\OneBody.Web\OneBody.Web.csproj(927, 3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
我在\ VisualStudio \ V12.0 \ WebApplications上有\ WebApplications文件夹,我的\ v11.0文件夹仅显示\ OfficeTools,\ TypeScript.
I have the \WebApplications folder on \VisualStudio\V12.0\WebApplications, my \v11.0 folder is only showing \OfficeTools, \TypeScript.
关于如何使用正确版本的任何想法?
Any ideas on how to make it use the right version?
推荐答案
有一个MSBuild ToolsVersion:字段
there is a MSBuild ToolsVersion: field
检查图像: http://img.hihi.si/Upload/Pftp.png
在这里您可以选择要使用的MSbuild版本.
Here you can select which MSbuild version you want to use.
您还可以使用Visual Studio Runner并选择其版本(2010、2012、2013,..)
You can also use Visual Studio runner and select its version (2010,2012,2013,..)
VS2012使用msbuild v11
VS2013使用msbuild v12
VS2012 uses msbuild v11
VS2013 uses msbuild v12
这篇关于Teamcity没有使用正确的MSbuild版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!