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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
是的,Visual Studio 支持多个提供程序。 整个 VS 架构是基于插件的,SCC 提供程序只是另一种插件(在 VS 术语中通常作为“包”实现)。
您一次只能让一个 SCC 提供商处于活动状态。 因此,您不能在同一解决方案中将不同的项目绑定到不同的提供商。
可以通过以下方式切换活动的 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:
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 可以处理多个源代码控制插件/系统,但您需要确保您的项目绑定到正确的提供程序(文件 -> 源代码控制 -> 更改源代码控制)。
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).
我使用:
SCC Switcher
来帮助我解决这个问题。 它很方便,因为它为您提供了一个用于切换的托盘栏图标。
I use:
SCC Switcher
to help me with this. It's handy as it gives you a traybar icon for switching.
我还推荐 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