30 August 2013

Assign VS2010 to devenv when we have VS2007 as default

Hi Friends,


We generally face this problem if we have Visual Studio 2007 and as well as Visual Studio 2010.  To
start Visual Studio we use the shortcut command devenv stands for development environment, but as we have installed VS 2007, this devenv commend is assigned to Visual Studio 2007 so it starts the Visual Studio 2007  not 2010.  Even I we installed Visual Studio 2010 after  VS2007 but it do not update the registry to open 2010 with that shortcut command.

To assign the Visual Studio 2010 to that shortcut command devenv you have to modify the registry.  You can go to the following path and change the value by the

"C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe"


here this value is the path of your 2010 Visual Studio installed directory.

1.  Open the Run prompt by pressing (Window Key + R)

2. type regedit and hit enter

3. due the some security setting it will prompt you to continue or not  click 'OK'

4. goto the following path
     
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\dev.exe


5. In right pane you will find a single REG_SZ entry with the name 'default', double click it.

6. provide the installed directory path in text box (like the path I provided very top)

7.  in previous step this textbox contains the path of VS2007 IDE path you have to overwrite it by the Visual Studio 2010 path.

8. Its done.



Or you can download the registry file directly from here and just double click it and its done..

if you are using Window 64-bit download from Here

if you are using Window 32-bit download from Here

the code of reg file looks like.


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\devenv.exe]
@="C:\\Program Files\\Microsoft Visual Studio 10.0\\Common7\\IDE\\devenv.exe"



Happy Tricks.. :)


No comments:

Post a Comment