Search code examples
visual-studio-2013version-controlvisual-studio-shell

Visual Studio SCC API - programmatically checkout files


Is there a generic programmatic way to use the Visual Studio Source Control Plugin API to check out files, browse repositories and check in files?

I am aware that I can use the TFS API to acheive the same results. However I would like to be able to execute source control commands generically enough without having to worry about which source control is currently used (TFS, SVN, git .. etc) Note: I am using a Visual Studio package to develop that. So I am in a VS Shell environment


Solution

  • As all SCM systems are built by different vendors there is no such abstraction later. You will need to create custom code for each system and make sure that each systems API is available to do so.