Team city unmet requirement: MSBuildTools12.0_x86_Path exists

后端 未结 11 2409
深忆病人
深忆病人 2020-12-12 21:50

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

相关标签:
11条回答
  • 2020-12-12 22:11

    In my case - only separate installation of MSBuild for VS2013 helped. (here is link - https://www.microsoft.com/en-us/download/confirmation.aspx?id=40760 ) It created this folder C:\Program Files (x86)\MSBuild\12.0 Installation of MSBuild tools for VS2015 created C:\Program Files (x86)\MSBuild\14.0 this folder, and TC didn't want to use it.

    0 讨论(0)
  • 2020-12-12 22:12

    In my case, it was a new machine without visual studio installed and i just restored Teamcity from another machine. So i have installed visual studio 2013 and solved teamcity agent problem.

    0 讨论(0)
  • 2020-12-12 22:15

    I had this problem on my secondary build agent.

    I had copied the MSBuild folder from the primary build agent pc to the secondary build agent pc (like I did with some Visual Studio files as described here: MSBuild in TeamCity of Visual Studio 2012 solution), rather than installing MSBuild.

    It seems, however, that the TeamCity agent services checks the registry for MSBuild entries when it starts up (it does not seem to do this with the Visual Studio files i mention above). Since I had simply copied the files from the other pc, no MSBuild entry for v. 12.0 existed, so TeamCity did not discover the MSBuild files even though they were present in the Program Files (x86)\MSBuild folder.

    When I installed the Microsoft Build Tools from the link above http://www.microsoft.com/en-us/download/details.aspx?id=40760 TeamCity found the v. 12.0 entry in the registry and the agent was able to build the same projects as the primary agent.

    Remember to restart the TeamCity agent service after installing MS Build Tools.

    0 讨论(0)
  • 2020-12-12 22:16

    MSBuild is now part of Visual Studio. If you need to install the build tools on your agent but don't want to install VS, you will need to install the new Microsoft Build Tools which is available at http://www.microsoft.com/en-us/download/details.aspx?id=40760.

    0 讨论(0)
  • 2020-12-12 22:20

    I needed to install MSBuild separately, then after restarting the agent the variable was there.

    (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.

    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

    0 讨论(0)
提交回复
热议问题