Working together with Visual Studio 2005 and 2008 |
With Visual Studio 2008 you have the ability to keep working with 2.0 projects. And when everyone in your team works with 2008 this works perfectly.
But when a few keep working with 2005 you have to solve a few little problems.
.sln files
Visual Studio 2008 converts a solution file to a new format, after which 2005 is not able to open it any more.
When you check the actual changes made to the solution file, in 95% percent of the cases it is only in the header.
It changes "Format Version 9.00" in "Format Version 10.00" and "# Visual Studio 2005" in "# Visual Studio 2008".
If you change these values back Visual Studio will eat the files again.
.csproj files
Project fikles are not converted. But when you create them in 2008 and try to open them in 2005 there are some things you need to check.
For example the new variable $(MSBuildToPath) used by 2008 is unknown in 2005, the exact same $(MSBuildToPath) works in 2005 and 2008. You can just change the project file and it will work again.
The Solution
These little changes can be done by hand, but ofcourse it can also be done automagicly.
To make this work you need to create 2 solution files, one for 2005 and one for 2008. When you maken changes in the 2005 file, you just let Visual Studio open the file and save it as the 2008 file. For the other way around you use a batch file and a SearchAndReplace application to copy the file and make the changes to the solution file.














RSS English
RSS Nederlands





