Visual Source Safe-如何在Visual Studio中无需打开解决方案的情况下删除绑定 [英] visual source safe - how to remove bindings from solution w/o opening in visual studio

查看:125
本文介绍了Visual Source Safe-如何在Visual Studio中无需打开解决方案的情况下删除绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道一种无需在Visual Studio中打开即可删除Visual Studio 2005和2008解决方案的vss源代码控制绑定的好方法吗?

Does anyone know of a good way to remove vss source control bindings for a visual studio 2005 and 2008 solution without opening it in visual studio?

我曾经使用过:del /s /f /a: *.*scc 然后,当我打开Visual Studio时,它会提示我并给我永久删除绑定"的选项.

I used to use: del /s /f /a: *.*scc Then when I opened visual studio it would prompt me and give me the option to "permanently remove bindings".

现在,当我尝试此操作时,它将重新创建.vssscc文件,并告诉我我的工作副本包含.vsscc文件的其他版本.无法删除源代码控制绑定.

Now when I try this it recreates the .vssscc file and tells me my working copy contains a different version of the .vsscc file. There's is no option to remove source control bindings.

真正的问题是,我正在尝试从源代码安全地处理解决方案的旧标签副本.但是,如果在仍受源代码控制的情况下打开该解决方案,它将获得该网站的最新版本.即使我没有选中源代码控制->环境->打开解决方案或项目时获取所有内容"选项,它仍会执行此操作.

The real problem is that I'm trying to work on an old labeled copy of the solution from source safe. But, if I open the solution while it's still bound to source control it will get the latest version of the web site. It does this even though I have the option "Source Control-->Environment-->Get everything when opening a solution or project" unchecked.

推荐答案

我通过编辑解决方案文件以及删除*.* scc文件来使其工作.

I got this to work by editing the solution file as well as deleting the *.*scc files.

这是我从解决方案文件中删除的内容:

Here's what I removed from the solution file:

在该部分下:

ProjectSection(WebsiteProperties) = preProject

我删除了以下4行:

        SccProjectName = ""$/HOS_amend.root/HOS", ENWBAAAA"
        SccAuxPath = ""
        SccLocalPath = ".."
        SccProvider = "MSSCCI:Microsoft Visual SourceSafe"

还删除了整个部分:

GlobalSection(SourceCodeControl) = preSolution

打开解决方案后,执行此操作后,系统会提示您永久删除绑定".

After doing this when I open the solution I get the prompt with the option to "permanently remove bindings".

这篇关于Visual Source Safe-如何在Visual Studio中无需打开解决方案的情况下删除绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆