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 of Visual Studio 2012 solution
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:
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_Path C:\Windows\Microsoft.NET\Framework\v2.0.50727
MSBuildTools3.5_x86_Path C:\Windows\Microsoft.NET\Framework\v3.5
MSBuildTools4.0_x86_Path C:\Windows\Microsoft.NET\Framework\v4.0.30319
How do I get 12.0 in there?
I seemed to solve this issue by going into the registry and deleting all entries for MSBuild that weren't for version 12, then restarted the agent.
To do that, go to Start > Run and type in Regedit
Then navigate to the key:
HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > MSBuild
Delete all versions except for 12.0.
Go down the next level to ToolsVersions and delete the non-12.0 versions there.
A bit of a late answer, but if your project is from VS 2012, and you're using the autodetected solution file build step, editing that step and choosing "Microsoft Visual Studio 2012" from the "Visual Studio" drop down fixes this issue as well (and, IMHO, more correctly).
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 createdC:\Program Files (x86)\MSBuild\14.0
this folder, and TC didn't want to use it.In my case I have TeamCity Professional 2018.1 on Windows 2016 Server. I downloaded Build Tools for Visual Studio 2017 from here: https://visualstudio.microsoft.com/downloads/ and selected all options for build tools. After install I added MSBuild to the global PATH environment variable. C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin in my case.