Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disconnect solution from source control on TFS

I have a solution with solution folder and projects. Get the whole soure code from TFS in a local folder say c:\mycodes Then copy the folder c:\mycode to another folder c:\lab

In c:\lab, remove all source control file *.vssscc, *.vspscc, then open the solution in c:\lab again.

Part of the project disconnect from TFS, but part of the projects in this solution still connect to TFS and some *.vssscc, *.vspscc files recreated when open the solution. Then unbind all project from server, those projects still have *.vspscc files auto generated.

I want to a clean copy of the source code with no source control. How to resolve this problem?

like image 503
KentZhou Avatar asked Jul 20 '10 13:07

KentZhou


People also ask

How do I remove a Source Control solution?

To remove files from source control: If you select a folder, project, or solution, any eligible child items will also be removed. choose Source Control > Remove or press Ctrl+R, R. The dialog will list the files that can be removed. In that dialog, you can deselect any files you don't want to remove.

How do I disconnect from a source?

Ribbon Select Source Control > Disconnect. Right-Click If you have the File List open, right-click on any file and select Source Control > Project > Disconnect. Local Toolbar In the local toolbar of the File List, click , then select Project > Disconnect.


2 Answers

In Visual Studio, select the solution in the solution explorer, then go to the File menu. Under the file menu, you'll see a Source Control menu. Under that you'll see Change Source Control.

Select this, and in the dialog box that comes up, choose "unbind."

Your solution is no longer bound.

like image 61
Robaticus Avatar answered Oct 16 '22 00:10

Robaticus


  1. Delete *.vssscc, *.vspscc, files .
  2. Open .sln file on notepad. Delete the code lines:

Code:

GlobalSection(TeamFoundationVersionControl) = preSolution         SccNumberOfProjects = 1         SccEnterpriseProvider = JKHJ78900-10FA-6457-4535-645676465463}         SccTeamFoundationServer = https://********.visualstudio.com/defaultcollection         SccLocalPath0 = .     EndGlobalSection 
like image 23
Halit Can Avatar answered Oct 16 '22 02:10

Halit Can