问题
I have both VS2015 and VS2017. When I choose "Open in Visual Studio" on GitHub I'd like to change it to use VS2017 instead of VS2015.
How can I do this?
回答1:
Found the answer by a different question: Workaround for "Visual Studio Web Request handler could not be found" when using github?
The solution is easy: just reassign the default handler for the git-client protocol. To do that, press the Windows-Key, enter "default apps" and select the settings page. Go down, select "Choose default apps by protocol" and look for "git-client". Click and select the Microsoft Visual Studio Web Protocol Handler Selector for VS2017.
回答2:
- Click Windows Start Button
- Start Typing 'Default Programs'
- Select 'Default Programs'
- Click 'Set your default programs'
- Select Visual Studio 2017 from program list
- Click 'Choose defaults for this program'
- To load the desired version of Visual Studio, Check the box by Web Protocol Handler
- Click Save Button
Note: If you are switching over and want all functionality to default to VS2017 (or whatever version) just select the 'Set this program as default' as an alternative for step 6.
来源:https://stackoverflow.com/questions/51056557/how-to-change-the-version-of-visual-studio-when-opening-on-github