Remove Team Foundation Server (TFS) association from your code in Visual Studio Edit
Step-by-step guide on removing Team Foundation Server (TFS) association from your Visual Studio project without affecting your code. Safely unbind your solution from TFS.
Before you make any changes, ensure you have a backup of your solution.
2. Close Visual Studio & Delete the TFS Folders and Files
Make Sure that all instances of Visual Studio are closed.
- Go to the root directory of your solution in Windows File Explorer. - Delete the hidden .vs folder (if it exists). - Delete the *.vssscc and *.vspscc files. These files are used for TFS version control bindings. - For older versions of TFS/Visual Studio, you might have a $tf folder. Delete this as well if it exists.
3. Edit the Solution File
Remove any lines related to GlobalSection(TeamFoundationVersionControl) or similar TFS-related sections. It might look something like this:
GlobalSection(TeamFoundationVersionControl) = preSolution ... Remove all the files related to TFS EndGlobalSection
4. Edit Project Files
open all .csproj in the solution.
- Remove any lines or nodes related to TFS or source control bindings. For exampl <sccprojectname>...</sccprojectname> <scclocalpath>...</scclocalpath> <sccauxpath>...</sccauxpath> <sccprovider>...</sccprovider>
5. Open Visual Studio & Finalize
Ensure everything still builds and runs correctly. If you still encounter any issues related to TFS, open project and solution file and to ensure all TFS-related entries were removed. now you'll have disassociated your code from TFS without affecting the actual code