Creating a VS2010 Solution File for VS2008 Solution

Is it possible to create a VS2010 solution file for an existing VS2008 solution? Thus, I would have both a VS2008 and a VS2010 solution file and be able to open a solution from VS2008 or VS2010 without a project converter?

Can I copy 2008.sln, rename it to MyProject2010.sln and replace:

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

with

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

Is there anything else I need to modify or create other than a solution file?

Thank you in advance

+4
source share
1 answer

First take a backup from your project;)

Yes. Changing the solution file, as you said in your question, works great! But every time you want to open in a different version of visual studio, you must make this change in the solution file.

This means that if you opened the solution in visual studio 2010, and now you want to open it in visual studio 2008, you must change these two lines, and then visual studio 2008 will open it! also, if you want to open a visual studio 2008 solution in visual studio 2010, you must change these two lines.

Note. For the first time, Visual Studio 2010 can show a transformation wizard. just click the "Finish" button.

And remember, do not change the target version of .Net Framework to 4.0 (or higher!)

I tried it right now and it worked. (I modified the solution file using Notepad ++)

+4
source

Source: https://habr.com/ru/post/1386493/


All Articles