locked
migration to VS2008 issue - MSBuild and the solution file format RRS feed

  • Question

  • I have a 3-stage build process using MSBUILD as a pre-processor, then calling a TFS build, then post-processing with MSBUILD.  I was on TFS 2005, the 2.5 .Net framework and VS2005 solutions up to now.  I've recently gotten a requirement to support a VS2008 solution into my process.  When I include it, I get an error that the VS2008 solution file is not compatible with my build process.

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

    The solution file form the VS2008 is version 10, so the error makes sense.

    My question is what do I have to do to support both VS2005 and VS2008 solutions, while running under TFS 2005? (We are planning a VS2008 upgrade, but it's a couple of months off.)
    • The error above comes from the msbuild call which is internal to the TFS build process.  How do I redirect that to the .Net 3.5 msbuild version?  Or is that even the correct approach?
    Tuesday, April 1, 2008 5:17 PM

Answers