Can Perforce and SourceSafe co-exist in Visual Studio?

别说谁变了你拦得住时间么 提交于 2019-11-30 20:40:25

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.

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

I use:

SCC Switcher

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

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!