in

ASP.NET Weblogs

MindFill - Brian Carroll's Blog

Do While (WhatYouKnow) < (WhatYouKnow + 1)

Removing SourceSafe dependencies from a solution/project

Situation:
Your buddy has created a cool VB.NET application that you want to use.  He sends you the source code and it consists of a solution (MySolution) containing a single project (MyProject).  You attempt to open the solution and find that it has SourceSafe dependencies.  You need to remove all the VSS stuff from the solution/project files.

Solution:

1 - Go to the folder containing the solution files and delete the following:
          mssccprj.scc
          MyProject.vssscc
          vssver.scc

2 - Open MyProject.sln in your favorite text editor and remove the following section:
          GlobalSection(SourceCodeControl) = preSolution
                     ...
          EndGlobalSection

3 - Go to the folder containing the project files and delete the following:
          MyProject.vbproj.vspscc
          mssccprj.scc
          vssver.scc

4 - Open MyProject.vbproj in your text editor and remove the following lines:
          SccProjectName = "SAK"
          SccLocalPath = "SAK"
          SccAuxPath = "SAK"
          SccProvider = "SAK"

Now you can open the solution/project with no source control errors.

 

Published Mar 08 2004, 12:54 PM by bkcarroll
Filed under:

Comments

 

Jerry Dennany said:

Instead of editing the files directly, go to File -> Source Control -> Change source control. Here you can edit the Source Control Binding settings.
March 8, 2004 3:39 PM
 

Brian Carroll said:

Sometimes it's the simplest things that slip by...Thanks for the short version.
March 8, 2004 4:08 PM
 

Korby Parnell said:

The Change Source Control dialog box allows you to either Disconnect a solution temporarily--to work offline on your laptop, for instance--or Unbind, which removes the solution/project from source control. A little more information about this at: http://blogs.msdn.com/korbyp/archive/2003/08/20/54113.aspx.

The Unbind command only performs steps 2 and 4 from the manual edit procedure you document in this post. Your steps are quite good, by the way. I assure you that the metadata and scc "turd" files that Unbind does not delete are completely non-toxic ;-) and will not interfere with your ability to edit, build, or deploy the solution and its projects in any way.
March 9, 2004 3:39 PM
 

TrackBack said:

March 21, 2005 11:03 AM
 

Dan's Archive said:

August 4, 2006 6:42 PM
 

Greg Thomson said:

Thanks for this, it helped.... I hate Source Safe

July 11, 2007 8:23 PM
 

Arne said:

I hate Source Safe toooooo

September 26, 2007 8:47 AM
 

theusualsuspect.com » Subversion said:

Pingback from  theusualsuspect.com &raquo; Subversion

October 26, 2007 3:10 AM
 

Fred said:

Source safe really is a piece of CRAP!

November 21, 2007 1:36 AM
 

Miggedy said:

Hi,

I'm having a problem with a solution that has three Visual C++ Projects and a VSS dependency I can't get rid off. VS2005 always asks while loading the solution if I want to permanently remove the dependency but selecting yes or no doesn't change anything. I also don't have a "Source Control" entry in the File menu.

I deleted all the files you mentioned, but I don't have any of the entries in the .sln or the .vcproj files and the message still keeps popping up every time I open the solution.

Any suggestions anyone?

Thank

  miggedy

December 8, 2007 10:27 AM
 

Sourcesafe said:

More trouble than what it's worth most of the time.

I just look for anything that resembles sourcesafe (includes the text: 'scc') and kick it out

February 7, 2008 11:59 AM
 

Lennard said:

Did you copy paste this blog from here?

www.knowdotnet.com/.../removefromsourcesafe.html

April 23, 2008 9:00 AM

Leave a Comment

(required)  
(optional)
(required)  
Add