摆脱 SourceSafe 源代码控制

发布于 2024-10-29 17:23:52 字数 509 浏览 3 评论 0原文

我的一个项目是在 SourceSafe 下进行的,我使用的是 VS2008。 最近我切换到了SVN。我删除了所有 SS 相关文件并将源文件提交到 SVN 中。无论如何,当我打开我的解决方案时,我仍然收到这条无害但烦人的消息(见下图):

The source control provider associated with this solution could not be found. The projects will be treated as not under source control.

Do you want to permanently remove the source control bindings from the projects?

在此处输入图像描述

我多次回答“是”并保存了所有文件,然后我关闭了解决方案并重新打开它。我总是收到这个消息。 我可以在哪里手动删除留下的任何绑定?

One of my projects was under SourceSafe and I am using VS2008.
Recently I switched to SVN. I removed all SS related files and committed the source files into SVN. Anyway, when I open my solution I'm still getting this inoffensive but annoying message (see picture below):

The source control provider associated with this solution could not be found. The projects will be treated as not under source control.

Do you want to permanently remove the source control bindings from the projects?

enter image description here

I answered multiple time Yes and saved all the files, the I closed the solution and reopen it. I always get this message.
Where can I manually remove any binding left there?

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

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

发布评论

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

评论(4

梦境 2024-11-05 17:23:52

您将需要触摸解决方案文件和解决方案中的每个项目文件。

在 .sln 文件中,您将看到以下需要删除的部分。

GlobalSection(SourceCodeControl) = preSolution
  ...
EndGlobalSection

在 .csproj 文件中,您将看到以下需要删除的行。

<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>

You will need to touch the solution file and each project file in the solution.

In the .sln file you will see the following section which needs to be removed.

GlobalSection(SourceCodeControl) = preSolution
  ...
EndGlobalSection

In the .csproj file you will see the following lines which need to be removed.

<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
美男兮 2024-11-05 17:23:52

查看解决方案文件 - 绑定将位于其中。您可能还想检查项目文件中是否有任何痕迹,但我认为它们都在解决方案中。

Have a look in the solution file - the bindings will be in there. You might want to check whether there are any vestiges in the project files as well, but I think they're all in the solution.

清晨说晚安 2024-11-05 17:23:52

看看这个。它已经很旧了,但在之前的项目中它确实为我创造了奇迹。

除了上述内容之外,我还建议乔恩写的内容。打开一个新的解决方案,比较并检查并删除不需要的东西。

希望这有帮助。

Have a look at this. It is pretty old, but it has sure worked wonders for me in the previous project.

In addition to the above, I would suggest exactly what Jon wrote. Open a new solution, compare and check and remove the unwanted things.

Hope this helps.

任性一次 2024-11-05 17:23:52

我尝试了@Brian Gideon 提到的两个步骤,但问题仍然存在。我正在使用 Visual Studio 2012。

我去了这里,其中方法相同,只是增加了1-2个步骤。阅读此博客中的评论帮助我意识到更改 IDE - Visual Studio 2012 中的源代码管理设置。

不要直接编辑文件,而是转到文件 ->源代码控制 ->更改源代码控制。您可以在此处编辑源代码管理绑定设置。

如果您使用的是 Visual Studio 2012,这可能工作。

将当前源代码控制插件更改为
Visual Studio Team Foundation 服务器

I tried both the steps mentioned by @Brian Gideon BUT the problem was still there. I am using visual studio 2012.

I went here where the method was same with addition of 1-2 steps. Reading onto comments in this blog helped me to realize to change the source control setting in the IDE - Visual Studio 2012.

Instead of editing the files directly, go to File -> Source Control -> Change source control. Here you can edit the Source Control Binding settings.

In case you are using Visual Studio 2012, this may work.

Change current source control plug-in to
Visual Studio Team Foundation Server

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