Friday, July 11, 2014

How to open Visual studio 2012 solution in Visual studio 2010?

As we know that if we have lower version solution  then we can open it in upper version but in case of reverse it doesn't allow us to open. In this case we get incompatibility problem. We can make it position by doing some changes in solution file, config file and project file.

In this article, I will explain - How to open Visual studio 2012 solution in Visual studio 2010?

To make it position, Just follow the below steps-

Step 1 -

Open your solution file (.sln) and replace "Format Version 12.00" with "Format Version 11.00"

Step 2 -

Open App.config and replace sku=".NETFramework,Version=v4.5" with sku=".NETFramework,Version=v4.0"

Step 3 -

Open your project file and replace

<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> with
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>

Finally save all the changes and close the files. Now just try to open your solution in Visual studio 2010. It will be opened.

Thanks