Disable Git integration in Visual Studio 2015 permanently

大憨熊 提交于 2020-05-10 04:36:07

问题


I am using Android studio, where I always working with Git, but in Visual studio 2015 I am working with VFS. Problem is, Visual Studio always connect to my Git repo. instead to Team Fundation Server. When I reconnect to VFS and select one from my solutions, Visual Studio reconnect back to Git. So VFS is useless.

I tried to managed this problem with registry hack like here: Question from: Matthew Kraus but no luck.

I want to use only VFS in Visual Studio, Git could be removed permanently.


回答1:


Problem solved using by this:

Here's how to disable the package that is responsible for loading the Git source control support in Visual Studio. Use at your own risk!

  1. Create a file called devenv.pkgundef and place it next to devenv.exe in you Visual Studio's Common7\IDE (you'll need elevation for this)

  2. Add the following entries to the file: [$RootKey$\Packages\{7fe30a77-37f9-4cf2-83dd-96b207028e1b}] [$RootKey$\SourceControlProviders\{11b8e6d7-c08b-4385-b321-321078cdd1f8}]

  3. Close VS if open, open a Developer command prompt, and type devenv /updateconfiguration

  4. Start VS, and voilla - Git support no more!

To undo, delete the devenv.pkgundef file, and run devenv /updateconfiguration again.



来源:https://stackoverflow.com/questions/34954528/disable-git-integration-in-visual-studio-2015-permanently

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!