Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Version Selector Doesn't open

I have Visual Studio 2008 and 2010 installed side by side, but trying to open either a 2008 or 2010 sln file results in nothing. The hour glass comes on for about a second and then it goes away and nothing is opened.

I read somewhere to relate sln file to VS directly, but I can't go that route because I don't want 2008 solutions to open with 2010. Does anyone know what the problem might be and how to fix it?

like image 656
Jonas Stawski Avatar asked Jul 21 '10 22:07

Jonas Stawski


People also ask

Where is VSLauncher EXE?

"C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\\VSLauncher.exe" "%V" source:ExplorerBackground.

How do I check my current version of Visual Studio?

On macOS, go to Code > About Visual Studio Code. On Windows and Linux, go to Help > About. The VS Code version is the first Version number listed and has the version format 'major.


1 Answers

If you are running Vista or Windows 7 with the UAC enabled and have "Run this program as an Administrator" checked on the Compatibility tab for the Visual Studio exe (devenv.exe), you will get this behavior when you try to open a sln file directly from Windows Explorer.

One solution is to go to "%ProgramFiles%\Common Files\Microsoft Shared\MSEnv" or ("%ProgramFiles(x86)%\Common Files\Microsoft Shared\MSEnv" for 64-bit systems) and right-click VSLauncher.exe and select Properties. On the Compatibility tab, check "Run this program as an Administrator". Now when you try to open a sln file directly from Windows Explorer, you will get the elevation prompt and it will open the correct version of Visual Studio for the file.

like image 146
Gene Merlin Avatar answered Sep 20 '22 07:09

Gene Merlin