How to remove a TFS Workspace Mapping?

前端 未结 21 1956
深忆病人
深忆病人 2020-11-29 16:54

I had a project in tfs within a team project then we moved the project to a different location in another team project.

I had configured Jenkins to connect to the te

相关标签:
21条回答
  • 2020-11-29 17:47

    From VS:

    1. Open Team Explorer
    2. Click Source Control Explorer
    3. In the nav bar of the tool window there is a drop down labeled "Workspaces".
    4. Extend it and click on the "Workspaces..." option (yeah, a bit un-intuitive)
    5. The "Manage Workspaces" window comes up. Click edit and you can add / remove / edit your workspace

    source control explorer

    From VS on a different machine

    You don't need VS to be on the same machine as the enlistment as you can edit remote enlistments! In the dialog that comes up when you press the "Workspaces..." item there is a check box stating "Show Remote Workspaces" - just tick that and you'll get a list of all your enlistments:

    show remote workspaces

    From the command line

    Call "tf workspace" from a developer command prompt. It will bring up the "Manage Workspaces" directly!

    0 讨论(0)
  • 2020-11-29 17:47

    I ran into the same problem, and was able to fix it by manually deleting all the files in the TFS cache, located here:

    %LocalAppData%\Microsoft\Team Foundation\3.0\Cache
    

    or 4.0, 5.0, etc.

    0 讨论(0)
  • 2020-11-29 17:47

    Team Explorer > Source Control Explorer >

    0 讨论(0)
  • 2020-11-29 17:47

    Thanks for your help!

    Find problem workspace SELECT * FROM tbl_Workspace WHERE WorkspaceName like '%xxxxx%'

    Find desired workspace SELECT * FROM tbl_Workspace WHERE WorkspaceName like '%zzzzz%'

    Select Edit Top 200 tbl_WorkingFolder then Find the problem mapping SELECT * FROM tbl_WorkingFolder WHERE WorkspaceId = Problem WorkspaceId from above

    Change the WorkspaceId to the desired WorkspaceId

    Finally goto Project Explorer and select Remove Mapping on the project

    Modify VB6 MSSCCPRJ.SCC to match the desired WorkSpace

    0 讨论(0)
  • 2020-11-29 17:51

    The error is genuine. You might have created workspace with same name on different machine. Now you may have changed machine having different machine name.

    So here is work-around that will definitely work.Following is work-around.

    1. Go to "Team-Explorer"
    2. Go to "Source-Control"
    3. Go to Workspace drop-down
    4. Click on "Workspaces..."
    5. A pop-up window will appear
    6. Click on "Show remote workspaces"
    7. Now delete the workspace which is conflicting and you can proceed your work.
    0 讨论(0)
  • 2020-11-29 17:51

    File -> Source Control -> Advanced -> Workspaces -> Choose the workspace in Manage Workspaces and click "Edit" Then you can change the local folder.

    0 讨论(0)
提交回复
热议问题