Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2012 project won't open in 2010

Tags:

I've created a game for an assignment in Visual Studio 2012 and the university I'm at uses 2010 and it won't open! It mentions something about NET Framework 4.5. How can I convert my project so it will open in 2010?

like image 482
user2141272 Avatar asked Mar 14 '13 09:03

user2141272


People also ask

How do I open an existing project in Visual Studio 2010?

Select File > Open > Project/Solution from the main menu. This will open the Open Project dialog box. 2. Using the Open Project dialog box, locate the Visual Studio Project you wish to open.

How do I open an old project in Visual Studio?

On the start window, select Open a project or solution. Visual Studio opens an instance of File Explorer, where you can browse to your solution or project, and then select it to open it. If you've opened the project or solution recently, select it from the Open recent section to quickly open it again. Start coding!

Is Visual Studio backwards compatible?

A newer version of Visual Studio might not support certain projects at all, or it might require that you update a project so that it's no longer backwards-compatible. For current status on migration issues, refer to the Visual Studio Developer Community.

Is Visual Studio 2022 backwards compatible?

You can install and use Visual Studio 2022 alongside previous versions of Visual Studio, including Visual Studio 2019, Visual Studio 2017, Visual Studio 2015, Visual Studio 2013, and Visual Studio 2012.


1 Answers

It takes three step:

Step 1

Open solution file (.sln) in a text editor and change

 Microsoft Visual Studio Solution File, Format Version 12.00 

to

 Microsoft Visual Studio Solution File, Format Version 11.00 

Step 2

Open application configuration file (App.config) in a text editor and change

sku=".NETFramework,Version=v4.5" 

to

sku=".NETFramework,Version=v4.0" 

Step 3

Open project file (for C# language .csproj) in a text editor and change

<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> 

to

<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> 

Now enjoy your project in VS 2010 !

like image 132
vahid Avatar answered Oct 15 '22 09:10

vahid