Wednesday, June 15, 2011

Easy Way to remove Visual Studio 2010 project from Visual SourceSafe

Visual SourceSafe creates .scc files when you add a Visual Studio 2010 (VS2010) project to Visual SourceSafe. The easiest way I know to remove a project from Visual SourceSafe version control (while still leaving the actual files in SourceSafe) is to do the following. You might want to do this if you want to make a copy of your project to use as a starting point for your new project or maybe want to share the project with someone else or maybe you are changing version control systems. Regardless, below are the steps to do this.

  1. Make a copy of your project using copy and paste in Windows Explorer.
  2. Recursively Search the project directory for all files that end in .scc. You can do this using the Search in Windows 7 or Search Companion (I think it was called in XP).
  3. Delete the results found.
  4. Open solution in VS2010. It will complain and eventually ask if you want to permanently remove the bindings. Do so for each project in your solution. You can go to the File menu | Source Control | Change Source Control… If there are any projects that are still bound, you can unbind them.

That’s it. Relatively easy actually.

No comments: