Giter Club home page Giter Club logo

sourcecontrolswitcher's Introduction

Source Control Switcher

Source Control Switcher Logo

Automatically sets the Source Control Provider according to the one used by the opened Visual Studio project.

All you need to do is to set your favourite defaults using the extension's dedicated Source Control Switcher option tab, which will be added to your Visual Studio Tools -> Options panel upon install, as in the screenshot below:

Source Control Switcher - Options Screenshot

Once done, your favourite Source Control Provider will be automatically set everytime you open an existing project or solution.

Alternatively, you can use the Default feature to let the extension automatically pick a suitable Source Control Client among those installed on your system. This is often the best choice if you've only installed a single client/extension for each Source Control Provider.

Supported Source Control Clients (and their provider) are:

  • AnkhSVN (Subversion)
  • VisualSVN (Subversion)
  • VisualSVN 2019 (Subversion)
  • Easy Git Integration Tools (EZ-GIT) (Git)
  • Git Source Control Provider (Git)
  • HgSccPackage (Mercurial)
  • VisualHG (Mercurial)
  • VSHG (Mercurial)
  • P4VS (Helix)

More providers can be added, provided they are regular source control providers and there exists an easy way to detect proper RCS type by checking file or directories presence starting from solution root directory.

Each provider (Subversion, Git, Mercurial or Helix) can be configured to either load a specific client (among those supported) or to get the first installed one found (Default).

The extension is fully compatible with VS2015, VS2017 and VS2019.

License is MIT.

This extension is strongly based to SccAutoSwitcher by Francesco Pretto, which sadly seems to be no longer updated and lack some important features such as VS2019 support and async loading support (which led me to create this project).

Useful References

sourcecontrolswitcher's People

Contributors

darkseal avatar joe-kr avatar qianmoxi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sourcecontrolswitcher's Issues

Broken for VS2017 users

Hi, I just discovered your extension and because I switch from SVN to Git projects often, this automatic switching would be cool. But the extension fails to load as VS2019 DLL is required:

CreateInstance failed for package [MainSite]Source: 'mscorlib' Description: Exception has been thrown by the target of an invocation. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Die Datei oder Assembly "Microsoft.VisualStudio.Threading, Version=16.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden
at Microsoft.VisualStudio.Shell.AsyncPackage..ctor()at SourceControlSwitcher.MainSite..ctor()

Support AnkhSVN2019

I've just installed SourceControlSwitcher 1.1.2 and noticed it is not working as expected.
It correctly switches to the internal git provider, but not to SVN. Since I am using the rather new AnkhSVN2019 plugin (v1.0.7), I am wondering if this is perhaps not yet recognized.

I tried both the Default and AnkhSVN subversion provider configuration settings, but to no avail.

Let me know if there is anything else I might do or provide to help tracking down the problem.

Cannot switch to VSHG

It seems the plugin does not switch to VSHG on a mercurial repository.
It is because IsSccPackageInstalled(VSHGPackageIds) returns false
although VSHG plugin is installed obviously.

I tried modifying the plugin source code.
By using VSHGPackageIds as "DADADA00-dfd3-4e42-a61c-499121e136f3",
I got success to switch.
I wonder this ID should be used or not.

I'm using:

  • Source Control Switch (ver. 1.1.2)
  • VSHG 1.2.0.3
  • Easy Git Integration Tools (ver. 1.9.2)
  • Windows 10 pro./ 64bit / 20H2
  • VisualStudio 2019

Switch button

Hello,

Is there any option to manually switch between control versions tool?
I was looking to switch between SVN and Git through a button 😁

Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.