Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 591
senfo Avatar asked Feb 21 '10 18:02

senfo


1 Answers

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.

like image 125
smaclell Avatar answered Oct 05 '22 01:10

smaclell