How can I use the same solution file in VS 2008 and VS 2010?

I recently installed VS 2008. Now I want to open the VS2010 project (sln) file in VS 2008. How can I do this?

+3
source share
2 answers

You cannot use the same solution file between 2008 and 2010. Each version of VS expects its own version of the .sln file. You can manually update 2010.sln by opening it in Notepad and rewriting it.

Microsoft Visual Studio Solution File, Format Version 11.0 
# Visual Studio 2010

For

Microsoft Visual Studio Solution File, Format Version 10.0 
# Visual Studio 2008

It works only for solutions that do not use any new features from VS 2010, and as soon as you try to open the file again in VS 2010, it will have to update it.

The best way is to use a separate .sln file for VS 2008 and 2010

+3

VS2010 MySolution.VS2010.sln VS2008, MySolution.VS2008.sln, . .

, ReSharper, . ELMAH ( "ELMAH\src\Solutions" ). .sln : http://code.google.com/p/elmah/source/browse/#svn%2Ftags%2FREL-1.2%2Fsrc%2FSolutions

+4

All Articles