Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add versions to “Visual Studio Version Selector”, my list is empty

I have VS 2008, 2010, and 2012 installed.

Initially, VS2013 Team Explorer was installed (Shell only). I uninstalled that.

Now, the Visual Studio Version Selector shows an empty list when executing a .sln file. Nothing shows.

How can I repopulate this list? Where is it stored? Registry? I tried to find entries, but since it doesn't actually have any items in the list, I couldn't search for a specific string.

Empty VSSelector

like image 222
wow0609 Avatar asked Dec 14 '14 18:12

wow0609


People also ask

How do I change the selector in Visual Studio?

Start the correct version of Visual Studio. Open the solution. In Visual Studio do this: Tools > Options > Environment > General > Press "Restore File Associations" button.

Can you have multiple Visual Studio versions installed?

Yes you can install multiple versions of Visual studio side by side.

How do I know which version of Visual Studio is installed?

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.

What is a solution file in Visual Studio?

A solution is a structure for organizing projects in Visual Studio. The solution maintains the state information for projects in two files: . sln file (text-based, shared) .


1 Answers

I just encountered the same issue after installing Visual Studio 2015 parallel to an existing 2013 installation. In my case it turned out that that the problem was related to the solution file itself: It seems that the version selector does not like BOMs etc. (don't know how the solution got crippled, though). Make sure that the solution starts with

Microsoft Visual Studio Solution File, Format Version 12.00

and has no space, non-printable character etc. before that. After saving the file, the effect should be immediately visible with the correct icon returning.

like image 89
Christoph Avatar answered Sep 23 '22 20:09

Christoph