且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

永久禁用Visual Studio 2015中的Git集成

更新时间:2023-11-22 11:48:52

使用此解决的问题:

这里是如何禁用负责在Visual Studio中加载Git源代码控件支持的软件包的方法.使用后果自负!

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. 在Visual Studio的Common7 \ IDE中创建一个名为devenv.pkgundef的文件,并将其放置在devenv.exe旁边(您需要对此进行提升)

  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)

将以下条目添加到文件中: [$RootKey$\Packages\{7fe30a77-37f9-4cf2-83dd-96b207028e1b}] [$RootKey$\SourceControlProviders\{11b8e6d7-c08b-4385-b321-321078cdd1f8}]

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

如果打开则关闭VS,打开Developer命令提示符,然后键入devenv/updateconfiguration

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

启动VS,开始使用voilla-Git不再支持!

Start VS, and voilla - Git support no more!

要撤消操作,请删除devenv.pkgundef文件,然后再次运行devenv/updateconfiguration.

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