问题描述
我在 x32 server2008 windows 机器上安装了 teamcity.我已经运行了 .net 4.5 网络安装.我还根据这篇文章从我的 x64 机器上复制了文件,这样我就不需要安装 vs2012(不过,我确实更改了在 32 位机器上删除 x86 的路径):
i have a teamcity install on x32 server2008 windows machine. i've run the .net 4.5 web install. i've also copied over the files from my x64 machine based on this article so that i didn't need to install vs2012 (though, i did have the change the path to remove x86 on the 32bit machine):
msbuild in teamcity 的 visual studio 2012 百家乐凯发k8的解决方案
我似乎无法让本地代理运行我在 vs2012 或 vs2010 项目上为 msbuild 设置的构建.我不断得到:
i can't seem to get the local agent to run the build that i've setup for msbuild on a vs2012 or vs2010 project. i keep getting:
未满足的要求:msbuildtools12.0_x86_path 存在
unmet requirements: msbuildtools12.0_x86_path exists
我已经多次重启了服务器,也重启了代理.我尝试过稍微弄乱路径变量,但无法弄清楚我缺少什么.我也查看了配置参数,并且可以看到这些:
i've restarted the server multiple times, and restarted the agent as well. i've tried messing with the path variables a little, but can't figure out what i'm missing. i've looked as well in the configuration parameters, and can see these:
msbuildtools2.0_x86_pathc:windowsmicrosoft.netframeworkv2.0.50727
msbuildtools2.0_x86_path c:windowsmicrosoft.netframeworkv2.0.50727
msbuildtools3.5_x86_pathc:windowsmicrosoft.netframeworkv3.5
msbuildtools3.5_x86_path c:windowsmicrosoft.netframeworkv3.5
msbuildtools4.0_x86_pathc:windowsmicrosoft.netframeworkv4.0.30319
msbuildtools4.0_x86_path c:windowsmicrosoft.netframeworkv4.0.30319
我如何在其中获得 12.0?
how do i get 12.0 in there?
推荐答案
我需要单独安装msbuild,然后重新启动代理后变量就在那里.
i needed to install msbuild separately, then after restarting the agent the variable was there.
(来自 msdn 文章)msbuild 现在作为 visual studio 的一部分安装,而不是作为 .net framework 的一部分.当前的 msbuild 版本号是 12.0.如果要单独安装 msbuild,请从 msbuild 下载中下载安装包.
(from msdn article) msbuild is now installed as part of visual studio rather than as part of the .net framework. the current msbuild version number is 12.0. if you want to install msbuild separately, download the installation package from msbuild download.
答案链接已损坏.这是 microsoft build tools 2015 的链接(最近直到今天):https://www.microsoft.com/en-us/download/details.aspx?id=48159
edit: the answer link was broken. here is the link for microsoft build tools 2015 (most recently until today): https://www.microsoft.com/en-us/download/details.aspx?id=48159