Seriously this is just too much pain for me. May be I don’t know the easy steps or there is just no easy way out.

Web projects have always been in conflict with Visual Source Safe in many areas especially when adding to VSS with proper directory mapping and moving projects around different VSS DBs.

I unbind the solution, unbind the project, then bind to new DB. First it seems all right with every files checked in. Then I can’t build nor save the whole project. Something about “check out solution” to build or “discard memory change”. Both option won’t save properly. The next restart of the solution will not include the web project and give you a project not found error.

I remove all .scc, mssccprj.scc and .csproj.vspscc files from solution as well as the project and try again. Still giving

me that same old shit error! This is just freaking hell, taking too much of my time trying many different ways.

Some projects binded well after about 3 tries but some just not happening. I tried 6 times for one project and finally about to give up, found the solution.
It’s not a good solution but it’s working.

First of all you’ll have to get rid of all those, vss associated, mentioned files above. Just search in the project folders and delete all.
Once you’ve done that, open solution file (.sln) and project file (.csproj) in NOTEPAD!
Yah you really need to play around with those source files.

In both files, you’ll see some encrypted codes and some understanding configurations. Now you know what to do.
Just have to delete all VSS config parts. Oh yah, you’ll have to uncheck “Read Only” permission from all your files so better allow read to the whole project folder.

Ok back to solution file, you need to remove “GlobalSection(SourceCodeControl)” bit, similar to the following.


GlobalSection(SourceCodeControl) = preSolution
SccNumberOfProjects = 1
SccLocalPath0 = .
CanCheckoutShared = true
SolutionUniqueID = {04C8BE20-2A9D-4E0B-9E42-AA9E45834A6F}
EndGlobalSection

Again from project (.csproj) file, delete the followings from the very first config tag.


SccProjectName = "SAK"
SccLocalPath = "SAK"
SccAuxPath = "SAK"
SccProvider = "SAK"

Now that should set things right and your project becomes fresh, offline, unbinded version. You can finally proceed to the binding with new VSSDB as normal new project binding steps.

phweeewwwwww!

That’s the only way I can think of to make it work and it took me hell lotta time to figure it out. So here you go – my note of struggling with vss transfer.
Do let me know if you have better/easier solution to this problem as I very much wish to know the proper method rather than scratching head, pulling hairs, banging around, following above steps.

No related posts.