Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

visual source safe - how to remove bindings from solution w/o opening in visual studio

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?

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

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.

like image 289
Seth Reno Avatar asked Jun 19 '09 19:06

Seth Reno


1 Answers

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:

Under the section:

ProjectSection(WebsiteProperties) = preProject

I removed the following 4 lines:

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

Also removed the entire section:

GlobalSection(SourceCodeControl) = preSolution

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

like image 57
Seth Reno Avatar answered Sep 20 '22 12:09

Seth Reno