Wednesday, April 02, 2008

TFS 2005 + VS 2008 - Trying to get them work together?

We had problem setting up CI. Had difficulty in setting up CI in TFS 2005 for VS 2008 solution. They are incompatible. MSBuild of TFS 2005 does not support VS 2008 solution. If your TFS build log had the below error,

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

Then here are few things you can try.

Upgrading TFS 2008 looks like a safe thing to do – claim is that it is backward compatible.

If upgrade is not possible, below solution looks like a quicker and safer (as this would be applicable only to our project) solution to begin with (but it is a hack and I hope the unit test and code analysis also works)