teamcityteamcity-5.0

TeamCity Using Wrong MSBuild Executable?


I'm building an MSBuild file and using it with the MSBuild Build Runner within TeamCity (5.0.2 (build 10784)), but I don't think it's running the right version of MSBuild because I keep getting the following error:

error MSB5014: File format version is not recognized. MSBuild can only read solution files between versions 7.0 and 9.0, inclusive.

I'm a total newbie with TeamCity, so I'm not sure where to begin to look how to configure this. As you can see from the screenshot below, I have selected version 4.0 in the build runner configuration screen.

Build Configuration


Solution

  • Based on the error it seems like Team City/MSBuild congifuration does not support VS2010. Solutions for VS2010 are version 10.0 where as the error indicates it only supports version 7.0 to 9.0.

    Here is a forum thread discussing building VS2010 projects using TeamCity.