Perforce 和 SourceSafe 可以在 Visual Studio 中共存吗?

发布于 2024-07-13 09:08:27 字数 157 浏览 9 评论 0原文

更具体地说,是 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

樱&纷飞 2024-07-20 09:08:27

是的,Visual Studio 支持多个提供程序。 整个 VS 架构是基于插件的,SCC 提供程序只是另一种插件(在 VS 术语中通常作为“包”实现)。

您一次只能让一个 SCC 提供商处于活动状态。 因此,您不能在同一解决方案中将不同的项目绑定到不同的提供商。

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

  • 转到“工具”->“ 选项-> 源代码控制(从 VS 2005 开始) - 或 -
  • 使用 SccSwitcher 直接修改注册表(VS 2003 及更早版本需要)
  • 打开已写入 SCC 绑定的解决方案

您无法在“绑定”对话框中更改提供程序(文件 -> 源代码管理 -> 更改 SCC)。 您所能做的就是绑定/取消绑定,或者对于一些奇怪的提供程序(例如 SourceSafe),编辑服务器路径。

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

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.

何时共饮酒 2024-07-20 09:08:27

Visual Studio 可以处理多个源代码控制插件/系统,但您需要确保您的项目绑定到正确的提供程序(文件 -> 源代码控制 -> 更改源代码控制)。

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

指尖上得阳光 2024-07-20 09:08:27

我使用:

SCC Switcher

来帮助我解决这个问题。 它很方便,因为它为您提供了一个用于切换的托盘栏图标。

I use:

SCC Switcher

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

孤芳又自赏 2024-07-20 09:08:27

我还推荐 TraySource,它与 SCC Switcher 相同,

我经常必须在 Perforce 和 Source Safe 之间切换,发现这是理想的选择

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文