3

Trying to configure Visual Studio 2008 project (TFS2010) on TeamCity, created build step with MS build selecting 2.0 as the .NET Framework version - but getting the follwoing error:

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

Any ideas on how to resolve this issue? I also tried selecting Visual Studio (sln) as Runner Type even that is not working.

Dave Schweisguth
  • 36,475
  • 10
  • 98
  • 121
user1022521
  • 509
  • 3
  • 9
  • 16
  • Which version of MSBuild ToolsVersion you have selected in TeamCity? – sll Nov 18 '11 at 09:50
  • I have selected .net 2.0 and msbuild tool version 2.0 - then i got the above error, also tried selecting 3.5 for each of them, now it sayd install vs2008,sdk3.5 on the server – user1022521 Nov 18 '11 at 17:43

1 Answers1

5

Use newer version of MSBuild. See this link for more details.

vharavy
  • 4,881
  • 23
  • 30
  • 1
    Did you read the link? You said that you are using MSBuild for .NET Framework 2.0. So, my answer suggests you to use MSBuild for .NET Framework 3.5 or higher. – vharavy Nov 18 '11 at 17:56