Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export Visual Studio 2012 to 2010 sln format

My teacher is complaining that he can't read the VS2012 format on his VS2010 environment. I looked around in settings and so on but couldn't find anything. How can I give the project in an VS2010 readable format to my teacher?

like image 985
Cisum Inas Avatar asked Sep 10 '12 17:09

Cisum Inas


People also ask

How do you make a SLN file?

Go to your folder with your solution sln file, and just type msbuild. It will automatically start building the sln files. If you use nuget packages, you will get errors about missing packages. You may have read somewhere that you only need to type “msbuild /t:restore”, but I think that it's only works for .

How do I save a SLN file?

Just click on the solution in the Solution Explorer and then click on "Save myProject. sln as..." in the File Menu. This will save your . sln in the folder that you choose without breaking the references.


2 Answers

Modifying sln manually

  1. Backup your project folder (copy/paste to another location, like a folder called "backups")
  2. Open sln file on wordpad
  3. Change the "header" of opened sln to below (the first lines that matches mentioned lines below, except by version number/name):

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

I'll see if there is a way to do it in project options...

like image 170
kokbira Avatar answered Oct 05 '22 10:10

kokbira


If the VS2010 installation has SP1 installed, then it should be able to read the VS2012 solution file.

like image 28
Thierry Avatar answered Oct 05 '22 09:10

Thierry