简体   繁体   English

Visual Studio SCC API-以编程方式签出文件

[英]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? 是否存在使用Visual Studio源代码管理插件API检出文件,浏览存储库和检入文件的通用编程方式?

I am aware that I can use the TFS API to acheive the same results. 我知道我可以使用TFS API达到相同的结果。 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. 但是,我希望能够足够通用地执行源代码控制命令,而不必担心当前使用的是哪个源代码控制(TFS,SVN,git ..等)注意:我正在使用Visual Studio软件包进行开发。 So I am in a VS Shell environment 所以我在VS Shell环境中

As all SCM systems are built by different vendors there is no such abstraction later. 由于所有SCM系统都是由不同的供应商构建的,因此以后就没有这种抽象了。 You will need to create custom code for each system and make sure that each systems API is available to do so. 您将需要为每个系统创建自定义代码,并确保每个系统API均可用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM