Thursday, July 19, 2018

Remove TFS source control from a .NET solution

Sometimes, you want to remove all TFS source control bindings from a solution.  This is helpful if you are moving the solution to a different TFS project or you want to use a different source control product.

First remove the .vssscc file from the solution folder, and the .vspscc file in each individual project folder.

Then, open up the solution file in Notepad.  Remove the following section completely:

 GlobalSection(TeamFoundationVersionControl) = preSolution
  SccNumberOfProjects = 2
  SccEnterpriseProvider = {########-####-####-####-############}
  SccTeamFoundationServer = https://tfs.yourdomain.com/tfs/my_collection
  SccLocalPath0 = .
  SccProjectUniqueName1 = MyProject\\MyProject.vbproj
  SccProjectName1 = MySolution
  SccLocalPath1 = MySolution
 EndGlobalSection

No comments:

Post a Comment