Tuesday, July 19, 2011

devenv opens older version of visual studio IDE


Devenv lets you set various options for the integrated development environment (IDE), and also build, debug, and deploy projects, from the command line.
However build related tasks, it is recommended to use Msbuild tasks

I use devenv command to start the VS IDE. While using this command from Run window, if multiple instance of Visual studio IDE s are installed on the machine, sometimes it opens the older version.

As an example, on my machine I have both VS2005 and 2008 installed. When I run “devenv” on the run command, it opens VS2005 IDE.

To open VS 2008, what I did,
  1. Open the registry editor – type regedit on the Run window
  2. Navigate to the path : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\devenv.exe
  3. Currently it is configured to open VS 2005. Update the registry key Default, to switch the mapping from VS 2005 to 2008
Old Default key value: $\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe
New Default key value: $\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe

No comments:

Featured post

How to connect to Mongo Atlas from Robo 3T

If you use a local instance of MongoDB, you might be a great fan of Robo3T. However, if you are using Mongo Atlas, the Atlas web interface p...

Popular Posts