Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Visual Studio Version in run-command(Start -> Run -> devenv)

I have both VS 2008 and VS 2010 installed in my PC (Windows XP). Now I try to open IDE via Start -> Run -> devenv it always open VS 2008 environment. Is it possible to change this settings ?? That is I do want to open VS 2010 when I type devenv in Start -> Run

Graciously welcoming any help.

like image 960
Jith Avatar asked Jul 30 '11 01:07

Jith


People also ask

What is Devenv exe in Visual Studio?

"Devenv.exe" is the central Integrated Development Environment (IDE) for Microsoft's Visual Studio suite used worldwide to develop applications for multiple platforms in over twenty programming languages. It installs in a subfolder of "C:\Program Files", ("C:\Program Files(x86)" on 64-bit systems).


2 Answers

These are the steps for windows 7:

  1. Press windows + r to open run window and then write "regedit" to open your PC registry.

  2. Then go to HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> Windows -> Currentversion -> App Paths -> devenv.exe

  3. Click on devenv.exe and change the value of default.

When you open default it has value like C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe

You need to change the value to your other installation, maybe C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe

After completing steps above, when you run devenv command it opens vs2010.

like image 82
Pramod Nepal Avatar answered Oct 10 '22 23:10

Pramod Nepal


I would simply find some Visual studio solution file, right click, properties, change the default version from 2008 to 2010

like image 27
Sudheer Avatar answered Oct 11 '22 00:10

Sudheer