我使用的是 Android studio,我总是使用 Git,但在 Visual studio 2015 中我使用的是 VFS。问题是,Visual Studio 总是连接到我的 Git 存储库。而不是 Team Fundation Server。当我重新连接到 VFS 并从我的解决方案中选择一个时,Visual Studio 重新连接回 Git。所以VFS没用。
我试过像这里这样用注册表黑客来解决这个问题: Question from: Matthew Kraus但没有运气。
我只想在 Visual Studio 中使用 VFS,可以永久删除 Git。
最佳答案
使用 this 解决的问题:
以下是如何在 Visual Studio 中禁用负责加载 Git 源代码控制支持的包。使用风险自负!
创建一个名为 devenv.pkgundef 的文件,并将其放在 Visual Studio 的 Common7\IDE 中的 devenv.exe 旁边(为此您需要提升权限)
将以下条目添加到文件中:
[$RootKey$\Packages\{7fe30a77-37f9-4cf2-83dd-96b207028e1b}] [$RootKey$\SourceControlProviders\{11b8e6d7-c08b-4385-b321-321078cdd1f8}]
如果 VS 打开,请关闭它,打开 Developer 命令提示符,然后键入 devenv/updateconfiguration
启动 VS,瞧 - Git 不再支持!
要撤消,请删除 devenv.pkgundef 文件,然后再次运行 devenv/updateconfiguration。
关于git - 永久禁用 Visual Studio 2015 中的 Git 集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34954528/