Remove TFS Connection From Solution
If you want to permanently and completely detach the solution from source control, then try the following:
- Click the 'No' button to avoid connecting to TFS.
- In the file menu, go to the source control options and clear the bindings. You'll specifically want File - Source Control - Advanced - Change Source Control...
- Save the solution.
Next time you open the solution you won't be prompted to connect to TFS.
Edit the solution file and remove the following section from it. It won't be the same but will be similar.
Note:To edit the solution file go to the project folder then open the YouSolutionName.sln
file with notepad.
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 2
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccTeamFoundationServer = <YourTFSURL>
SccLocalPath0 = .
SccProjectUniqueName1 = .
SccLocalPath1 = .
EndGlobalSection
To completely remove TFS source control binding follow these two steps:
- Go to your solution's folder, find and delete all files with
*.vssscc
and*.vspscc
extensions. - Open your solution's
.sln
file in Notepad, and find & remove theGlobalSection(TeamFoundationVersionControl)
section.
More details on reference Link