環境:Vs2103(TFS2013)
目的:去掉別人項目裡的TFS控制,因為每次打開時會有提示信息
解決方法:
1.刪除隱藏的.$tf文件夾,搜索*.vssscc和
*.vspscc這兩個後綴的文件,刪除找到的文件.
2.使用文本編輯器打開*.sln
文件,找到
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
刪除,並保存!
參考:http://blog.useasp.net/archive/2015/12/15/how-to-permanently-remove-vs-project-TFS-source-version-control-binding.aspx,如有版權問題,請告知!