Edit: After wait too long, I have resorted to do a clean install of Windows 7.
It solves everything.
I believe the cause is : some Windows files, or some service are disabled, by me or virus.
Now, I can no longer test any solution so I accept the existing useful one.
Original Question
My Visual Studio 2017 can run & compile C++ code, but :-
- (main problem) can't install any Extension (double click
.vsix
yield nothing) - double click
.sln
will popup "Choose Application" that shows no choice. (but "Open with..." works OK)
This issue happens only to my computer in workplace.
It had worked OK before I cleaned up my system.
I tried :-
- install, uninstall and repair Visual Studio 2017 several times.
- https://github.com/Microsoft/VisualStudioUninstaller
%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe -full
then reinstall (can remove "(2)", but not other symptom)- update to the latest version 15.9.17
(Thank comment from Jeaninez - MSFT) Make sure my
.sln
start with this at the first line:-Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15
I believe the issue is related to Microsoft Visual Studio Version Selector.
This symptom might come after I uninstall VS2019.
My system might be broken?
Perhaps, the cause may be somethings very deep in OS. I am considering reinstall Windows 7.
Reference:
- Why I think it is Version-Selector-related : Can't install the extension on Visual Studio 2017 after installing Visual Studio 2019
- Similar question (2014) : How do I add versions to “Visual Studio Version Selector”, my list is empty (repair not help)
- Visual Studio Version Selector Doesn't open (2010)
- Best link about
(2)
: https://developercommunity.visualstudio.com/content/problem/251934/vs2017-community-edition-shows-2-in-title-name.html