Monday, February 19, 2007

How to manually decoupling your Visual Studio 2005 solution from Visual Source Safe 2005

Follow these steps to decouple your VS .NET 2005 Solution from Visual Source Safe 2005 by yourself:

  1. First of all: take a backup ! ;-)
  2. Go to the properties of the folder where you can find all your project files.
    Uncheck the 'Read-only' checkbox.
  3. Open the .csproj file and delete following tags
    <SccProjectName>SAK</SccProjectName>
    <SccLocalPath>SAK</SccLocalPath>
    <SccAuxPath>SAK</SccAuxPath>
    <SccProvider>SAK</SccProvider>

    You can find them below the Project > PropertyGroup tags
  4. Delete following files:
    *.vspscc
    *.user
    *.scc

  5. Go to the solution file and delete following lines
    Project
    SccProjectName = ...
    SccAuxPath = ...
    SccLocalPath = ...
    SccProvider = ...

    GlobalSection(SourceCodeControl) = preSolution
    SccNumberOfProjects = ...
    SccLocalPath0 = ...
    SccProjectUniqueName1 = ...
    SccLocalPath1 = ...
    SccProjectFilePathRelativizedFromConnection1 = ...
    SccProjectUniqueName2 = ...
    ...
    SccLocalPath9 = .
    SccProjectFilePathRelativizedFromConnection9 = ...
    EndGlobalSection
  6. Open your solution file again...
    If your solution doesn't want to open Visual Studio, then you have to open Visual Studio 2005 manually.Open the solution file through the Open Dialog in VS 2005.

Succes!


No comments: