TFS解决方案认为它仍处于版本控制之下

时间:2017-05-13 17:49:24

标签: visual-studio tfs

我已从 TFS 版本控制中取消绑定所有项目,但每次打开解决方案时,都会弹出一个对话框,询问我是否要连接到 TFS

问:我如何摆脱它?

enter image description here

2 个答案:

答案 0 :(得分:1)

找到它了!
我不得不进入解决方案文件并删除以下(手动)

GlobalSection(TeamFoundationVersionControl) = preSolution
    SccNumberOfProjects = 8
    SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
    SccTeamFoundationServer = https://yournamehere.visualstudio.com/
    SccLocalPath0 = .
    SccProjectUniqueName1 = Data\\Data.csproj
    SccProjectTopLevelParentUniqueName1 = Guardians.sln
    SccProjectName1 = Data
    SccLocalPath1 = Data
    SccProjectUniqueName2 = Framework\\Framework.csproj
    SccProjectTopLevelParentUniqueName2 = Guardians.sln
    SccProjectName2 = Framework
    SccLocalPath2 = Framework
    SccProjectUniqueName3 = Models\\Models.csproj
    SccProjectTopLevelParentUniqueName3 = Guardians.sln
    SccProjectName3 = Models
    SccLocalPath3 = Models
    SccProjectUniqueName4 = Dictionary\\Dictionary.csproj
    SccProjectTopLevelParentUniqueName4 = Guardians.sln
    SccProjectName4 = Dictionary
    SccLocalPath4 = Dictionary
    SccProjectUniqueName5 = Web\\Web.csproj
    SccProjectTopLevelParentUniqueName5 = Guardians.sln
    SccProjectName5 = Web
    SccLocalPath5 = Web
    SccProjectUniqueName6 = Cloud\\Cloud.ccproj
    SccProjectTopLevelParentUniqueName6 = Guardians.sln
    SccProjectName6 = Cloud
    SccLocalPath6 = Cloud
    SccProjectUniqueName7 = UnitTests\\UnitTests.csproj
    SccProjectTopLevelParentUniqueName7 = Guardians.sln
    SccProjectName7 = UnitTests
    SccLocalPath7 = UnitTests
EndGlobalSection

答案 1 :(得分:0)

在解决方案和项目文件夹中,您将找到负责版本控制的*.vspscc个文件,将它们全部删除,您的问题应该得到解决。

还有一个.vs$tf隐藏文件夹,您还需要将其删除。