github - 使用 github 时 "Visual Studio Web Request handler could not be found"的解决方法?

标签 github visual-studio-2017 protocol-handler

当我在 github 上选择“在 Visual Studio 中打开”时,出现以下错误:

"Visual Studio Web Request handler could not be found"



我相信这是由于 git-client 协议(protocol)处理程序没有正确注册。

此处列出了 VS2015 的已关闭错误,但没有解决方法:https://github.com/github/VisualStudio/issues/140

我曾尝试修复 Visual Studio 2017,但并没有修复它。
是否有解决方法,也许是通过编辑 HKEY_CLASSES_ROOT\git-client 条目?

最佳答案

解决方案很简单:只需为 git-client 协议(protocol)重新分配默认处理程序。
为此,请按 Windows 键,输入“默认应用程序”并选择设置页面。向下,选择“按协议(protocol)选择默认应用程序”并查找“git-client”。单击并选择 VS2017 的 Microsoft Visual Studio Web 协议(protocol)处理程序选择器。

enter image description here

当您单击 Github 中的“在 Visual Studio 中打开”- 按钮时,Visual Studio 2017 应该会打开,您可以在团队资源管理器中克隆存储库。

关于github - 使用 github 时 "Visual Studio Web Request handler could not be found"的解决方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44106007/

相关文章:

GitHub:加载最新提交信息失败

c# - Xamarin 错误 : Unable to open text symbol file obj\Debug\R. txt:权限被拒绝 "R.txt: Permission denied"

c++ - VS2017从15.4.1升级到15.5.1导致构建错误

windows-10 - 自定义协议(protocol)处理程序在 MS Edge 中不起作用

Android WebView 协议(protocol)处理程序

git - 为什么 git (bash) 会在我的新文件中插入一堆废话?

git - SCM 同步不工作

git - 有什么方法可以限制开发人员访问 gitlab 或 github 中的特定文件夹?

c# - CA1062 未在 .Net Standard 2.0 类库上进行评估

objective-c - 如何在 Objective-C 应用程序中自行退出?