为什么 Visual Studio 2005 更喜欢“无”而不是强制作为源代码控制提供商

发布于 2024-08-05 15:16:19 字数 788 浏览 2 评论 0原文

(以前:帮助!Sourcesafe 劫持 Visual Studio 2005 中的 Perforce 绑定)

嗨,

我目前在 Visual Studio 解决方案方面遇到问题。我们通过 Visual Studio 中的绑定机制使用 perforce 作为我们的源代码控制提供程序。

我的问题是,每次我打开解决方案时,sourcesafe 都会劫持绑定,并向我显示许多有关无法找到 sourcesafe 数据库的错误。 通过以下方法可以轻松纠正此问题:

  1. 解除解决方案和所有项目的绑定。
  2. 转到选项并将源代码控制提供程序从 sourcesafe 更改为 perforce。
  3. 重新绑定解决方案和所有项目。

但是!我不想每次打开解决方案时都这样做。

有谁知道她这里发生了什么事吗?我最好想解决这个问题而不完全删除源安全插件。

更新:

我删除了一些注册表项,以防止 VS 发现 sourcesafe 插件。这是有效的,因为在选项的提供程序列表中不再可以找到 sourcesafe。有趣的是它仍然不会使用perforce。当我打开解决方案时,我仍然收到错误,并且提供程序在选项对话框中设置为“无”。

看来这不是一个源安全问题,而是一个Visual Studio问题。有谁知道 Visual Studio 在项目和解决方案级别上存储其绑定的位置?我检查了 .scc 和 .vssscc 文件,发现没有提及 perforce。 (项目名称除外:“perforce 项目”)

此致,

  • Yngve

(Formerly: Help! Sourcesafe hijacks Perforce bindings in visual studio 2005)

Hi,

I'm currently having a problem with a visual studio solution. We're using perforce as our source control provider through the binding mechanism in visual studio.

My problem is that every time I open the solution sourcesafe will hijack the bindings and show me lots of errors about not being able to find the sourcesafe database.
This problem is easily corrected by:

  1. Unbinding the solution and all projects.
  2. Go to options and change source control provider from sourcesafe to perforce.
  3. Rebinding the solution and all projects.

But! I don't want to do this every time i open the solution.

Does anyone her know what's going on here? I preferrably want to fix this without removing the sourcesafe plugin altogether.

Update:

I have removed some registry entries to keep VS from discovering the sourcesafe plugin. This works since sourcesafe no longer can be found in the list of providers in the options. The funny thing is that it still won't use perforce. When I open the solution I still get the errors and the provider is set to "none" in the options dialog.

It seems that this is not a sourcesafe problem, but a visual studio problem. Does anyone know where visual studio stores its bindings on a project and solution level? I have checked the .scc and .vssscc files and found no mention of perforce. (Other than project name: "perforce project")

regards,

  • Yngve

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

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

发布评论

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

评论(2

没有你我更好 2024-08-12 15:16:19

Visual Studio 一次仅支持 1 个源代码管理,因此您需要在打开解决方案之前通过选项切换提供程序。 (开放VS、切换提供商、开放解决方案)。

Visual Studio supports only 1 Source Control at once, so you need to switch providers through options BEFORE you open the solution. (open VS, switch providers, open solution).

娇纵 2024-08-12 15:16:19

经过大量挖掘,在注册表中也是如此。我在以下键下找到了一个源代码控制提供程序的小列表:

[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\SourceControl\EngineNames]
"0"="Sourcesafe"
"1"="Perforce"

将顺序更改为:

[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\SourceControl\EngineNames]
"0"="Perforce"
"1"="Sourcesafe"

它正确地将项目与 perforce 关联起来。你问为什么?我一点也不知道。
不过,这个“修复”是否会扰乱与 sourcesafe 的任何绑定还有待观察。

After a lot of digging, in the registry as well. I found a little list of source control providers under the following key:

[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\SourceControl\EngineNames]
"0"="Sourcesafe"
"1"="Perforce"

After changing the order to:

[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\SourceControl\EngineNames]
"0"="Perforce"
"1"="Sourcesafe"

it correctly associates the projects with perforce. Why, you ask? I have no idea whatsoever.
Whether or not this "fix" will mess with any bindings to sourcesafe remains to be seen though.

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