Perforce和SourceSafe可以在Visual Studio中共存吗? [英] Can Perforce and SourceSafe co-exist in Visual Studio?

查看:108
本文介绍了Perforce和SourceSafe可以在Visual Studio中共存吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更具体地讲,Visual Studio 2008.我们正在测试迁移到Perforce进行源代码控制,因此我想安装P4SCC插件以配合使用.但是,我还想继续对尚未迁移的项目使用SourceSafe的IDE功能.两者可以和平共处吗,或者对于特定安装的VS是一个还是另一个?

Visual Studio 2008, to be more specific. We're testing out moving to Perforce for source control, so I'd like to install the P4SCC plugin to monkey around with. However, I'd also like to continue using SourceSafe's IDE capabilities for projects that haven't been moved over yet. Can the two co-exist peacefully, or is it one or the other for a specific install of VS?

推荐答案

是的,Visual Studio支持多个提供程序.整个VS体系结构都是基于插件的,而SCC提供程序只是另一种插件(在VS术语中,通常以包"的形式实现).

Yes, Visual Studio supports multiple providers. The entire VS architecture is plugin based, and SCC providers are just another kind of plugin (usually implemented as a "package," in VS terminology).

一次只能激活一个SCC提供程序.因此,您不能在同一解决方案中将不同的项目绑定到不同的提供程序.

You can only have one SCC provider active at a time. So you cannot have different projects bound to different providers within the same solution.

活动的SCC提供程序可以通过以下方式进行切换:

The active SCC provider can be switched by:

  • 转到工具"->选项"->源代码控制"(自VS 2005起)-或-
  • 使用 SccSwitcher 之类的工具直接修改注册表(需要VS 2003及更早版本)
  • 打开已经写入了SCC绑定的解决方案
  • Going to Tools -> Options -> Source Control (present as of VS 2005) -or-
  • Using a tool like SccSwitcher to modify the registry directly (needed on VS 2003 and earlier)
  • Opening a solution that already has SCC bindings written into it

您不能从绑定"对话框(文件->源代码管理->更改SCC)中更改提供程序.您所能做的就是绑定/取消绑定,或者在一些奇怪的提供程序(如SourceSafe)的情况下,编辑服务器路径.

You cannot change the provider from within the Bind dialog (File -> Source Control -> Change SCC). All you can do there is bind/unbind, or in the case of a few odd providers like SourceSafe, edit the server path.

要更改现有解决方案的提供程序,请使用绑定"对话框删除现有绑定,从工具"->选项"(或SCCSwitcher,如果需要)中更改活动提供程序,然后从解决方案"中启动将解决方案添加到源代码管理"向导资源管理器.

To change the provider of an existing solution you would use the Bind dialog to remove the existing bindings, change the active provider from Tools -> Options (or SCCSwitcher if needed), then launch the Add Solution To Source Control wizard from Solution Explorer.

这篇关于Perforce和SourceSafe可以在Visual Studio中共存吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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