在Visual Studio中更改源代码管理插件 [英] Change source control plug-in in Visual Studio

查看:420
本文介绍了在Visual Studio中更改源代码管理插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前解决方案由SVN管理,我想切换到git。当我做Tools-> Options-> Source Control-> Plug-in Selection and change plug-in时,我得到这个对话框:
$ b

我再也无法过去,当我再次打开.sln时它仍然是SVN。



我有一种感觉,我已经在过去做了这么多次。



其他info:这些文件已经由git管理,我只是使用git扩展来克隆它,它是np。问题出在VS.

解决方案

建议:不要打扰切换。将其从源代码管理(SVN)中删除并重新检查(git)。或者,如果通过Visual Studio工具删除它不起作用,请按照以下步骤手动执行: 关闭Visual Studio; >

  • 删除.svn文件夹

  • 打开记事本中的.SLN文件,找到指定SCC提供程序的行并删除它们。 b $ b
  • 再次在Visual Studio中打开解决方案 - 它不应再受源代码控制,您应该可以在git中检查它。

  • 编辑:
    手动从.sln文件中删除这个操作的窍门是:

      GlobalSection SubversionScc)= preSolution 
    Svn-Managed = True
    Manager = AnkhSVN - Subversion支持Visual Studio
    EndGlobalSection


    Currently the solution is managed by SVN and I want to switch to git. When I do Tools->Options->Source Control->Plug-in Selection and change plug-in I get this dialog:

    I never get past that, when I open the .sln again it is still SVN.

    I have a feeling I have done this many times in the past.

    Additional info: The files are already managed by git, I just cloned it using git extensions and it was np. The issue is in VS.

    解决方案

    Suggestion: Don't bother with switching. Remove it from source control (SVN) and check it in anew (git). Or, if removing it by Visual Studio tools doesn't work, here's how you do it manually:

    1. Close Visual Studio;
    2. Delete the .svn folder
    3. Open the .SLN file in notepad, find the lines which specify the SCC provider, and delete them.
    4. Open the solution in Visual Studio again - it should not be under source control anymore and you should be able to check it in git.

    Edit: Manually removing this from the .sln file did the trick:

    GlobalSection(SubversionScc) = preSolution
        Svn-Managed = True
        Manager = AnkhSVN - Subversion Support for Visual Studio
    EndGlobalSection
    

    这篇关于在Visual Studio中更改源代码管理插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆