Can Perforce and SourceSafe co-exist in Visual Stu

2020-03-03 06:07发布

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?

4条回答
何必那么认真
2楼-- · 2020-03-03 06:12

Visual Studio can handle multiple source control plugins/systems, but you'll need to be sure that your projects are bound to the correct provider (File->Source Control->Change Source Control).

查看更多
仙女界的扛把子
3楼-- · 2020-03-03 06:21

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).

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.

The active SCC provider can be switched by:

  • 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

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.

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.

查看更多
ら.Afraid
4楼-- · 2020-03-03 06:28

I use:

SCC Switcher

to help me with this. It's handy as it gives you a traybar icon for switching.

查看更多
戒情不戒烟
5楼-- · 2020-03-03 06:31

I would also recommend TraySource its the same as SCC Switcher

I reguarly have to switch between Perforce and Source Safe and found this to be ideal for it

查看更多
登录 后发表回答