Reference source Https://www.cnblogs.com/weixing/p/5219294.html,
My environment VS2017 reference the following operation, you can achieve the purpose!
To permanently clear TFS versioning in your project, you need to take three steps (make sure you're not using the current project before the operation):
- Clear (delete) All version control files under the project, which are:
*.vssscc
,*.vspscc
Delete these version control files is relatively simple, search for these suffix files, delete can;
- To modify a project's solution file:
*.sln
First verify that the solution file ( *.sln
) is modifiable, and if it is a read-only file, it needs to be adjusted to be modifiable. Never open a file using Visual Studio, open the file with a text editor, and *.sln
in the file we will see code similar to the following:
Globalsection (Teamfoundationversioncontrol) = presolution sccnumberofprojects = 4 Sccenterpriseprovider = { XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} Sccteamfoundationserver = Here is your project ' s TFS SccLocalPath0 =. SccProjectUniqueName1 = project-unique-name1.csproj SccProjectName1 = your-project-name SccLocalPath1 = Project-local-path SccProjectUniqueName2 = project-unique-name2.csproj SccProjectName2 = project-name-2 SccLocalPath2 = Local-path2 SccProjectUniqueName3 = project-unique-name3.csproj SccProjectName3 = project-name-3 SccLocalPath3 = Local-path3. Endglobalsection
3. This code is the TFS configuration that is loaded when the project starts, and we want to eliminate TFS, this code must be deleted, after deletion, save the file.
vs Clear TFS Versioning tips when opening a project