'VSLauncher starts wrong version
I have 3 versions of Visual Studio installed, and 3 projects that require a specific version. VSLauncher USED to look at the SLN or VCPROJ file and open the correct version of Visual Studio. Now it only starts the most recent version, regardless of the project.
Note that this has nothing to do with the commonly reported problem with beta versions of VS. none of the SLNs have ever been touched by a beta VS.
Solution 1:[1]
I had this same issue. VS 2008 solutions opening in VS2010 when double clicked. This problem went away after first going into VS 2008 and using 'Restore File Associations' then right clicking on a 2008 solution file and choosing open with and pointing it to Version Selector. Prior to this they invariably opened in 2010. Very frustrating. Hope this helps.
Tools | Options | Environment | (big button marked Restore File Associations
Solution 2:[2]
I also found, in Windows 7 Explorer, that I could right-click the sln, select Open with / Choose default program, then select Microsoft Visual Studio Version Selector - it would open with VS2008 (as was appropriate) and from then on, double-clicking the sln file would cause VS2008 to launch.
Solution 3:[3]
I had the same problem.
Visual studio could open normally the solution, but the version selector couldn't identify the version correctly.
In my case there was a problem with the EOL. Somehow the file was using unix EOL format, by changing it back to Windows format, the version selector started working again.
Solution 4:[4]
Open your solution in the right Visual Studio version. Click your Solution to select it. Click File --> Save xxx.sln.
Solution 5:[5]
For Windows 10 and Visual Studios 2017 and 2019:
- Click Windows Start Button
- Start Typing 'Default app settings'
- Choose "Default app settings'
- Near the bottom of the page, click the link "Choose default apps by file type"
- Find the extension ".sln" or ".vcproj", and select the default application.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Preet Sangha |
| Solution 2 | Kelly Cline |
| Solution 3 | Massuda |
| Solution 4 | |
| Solution 5 | Hezi |

