如何在Visual Studio中按解决方案指定源代码控制插件? [英] How to specify the source control plugin on a per-solution basis in Visual Studio?

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

问题描述

我刚刚安装了 AnkhSVN ,以便在Visual Studio 2010中提供对Subversion的支持. 我注意到我必须去工具>选项>源代码控制来选择当前的源代码控制插件.

I just installed AnkhSVN to have subversion support from within Visual Studio 2010. I noticed I had to go to Tools > Options > Source Control to select the current source control plugin.

目前,我正在使用不同的版本控制系统进行多个项目.例如,我在Mercurial中也有一些项目,它们的VS源代码控件插件可用.

At the moment, I'm working on multiple projects using different version control systems. For instance, I also have some projects in Mercurial, for which a VS source control plugin is available.

有什么方法可以按解决方案指定源代码控制插件吗?还是VS可以自动检测使用的vc?这方面的最佳做法是什么?

Is there any way to specify the source control plugin on a per-solution basis? Or can VS detect the used vcs automatically? What are the best practices in this respect?

通过Google搜索,我找到了 Perforce和SourceSafe是否可以在Visual Studio中共存? .两者涵盖了相同的领域,但似乎特定于特定的vc,并且缺少令人满意的一般答案.我正在这里寻找一般答案.

a google search led me to How to configure Visual Studio to use different source control providers and Can Perforce and SourceSafe co-exist in Visual Studio?. Both cover the same ground, but appear to be specific to specific vcs and lack a satisfying general answer. I'm looking for a general answer here.

推荐答案

很遗憾,这里没有好的答案.打开项目之前,您只需要进入并手动更改Visual Studio源代码管理提供程序的设置即可.这是该特定插件系统工作方式的限制,并且可能需要使用新版本的Visual Studio来专门解决该问题.

There is unfortunately no good answer here. You will simply have to go in and manually change you visual studio source control provider settings before you open the project. This is a limitation of how this particular plugin system works, and will probably take a new version of visual studio to specifically address it.

在这种情况下,Visual Studio使用标准的源代码控制工具在企业商店中更有效,而对于使用多种技术来与多个客户合作的承包商则效果不佳.

This is an instance where visual studio works better for the enterprise shop with standardized source control tools, and not as good for a contractor working with multiple clients across an array of technologies.

这篇关于如何在Visual Studio中按解决方案指定源代码控制插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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