How to remove a TFS Workspace Mapping?

前端 未结 21 1958
深忆病人
深忆病人 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:56

    None of the answers here removed my workspaces. But here is one solution that may work for you.

    1. Open up a Visual Studio command prompt
    2. Close Visual Studio first or the delete command may not delete the workspace
    3. List the workspace commands -> tf /? to find the commands available to you from the version of TFS.
    4. List the workspaces -> tf workspaces
    5. Delete the workspace -> tf workspace YourWorkspace /delete
    0 讨论(0)
  • 2020-11-29 17:56

    I was prompted to login to our TFS server via Visual Studio, so I used my SU account which is typically required for server access. This led to some issues, and I ended up mapping to a different folder, not realizing I had just duplicated all my stuff. At some point, Visual Studio reverted back to my regular user, I "lost" pending changes, and noticed that new pending changes were placed by in my old mapping.

    When I would try to remap to the new location (that the SU account was linked to) in an attempt to recover my pending changes, it would tell me it was already mapped to the SU, and I couldn't do that, but had no way of removing the map! Show remote workspaces, removing all workspaces via command line, etc revealed nothing. I then thought "what if it's actually linked to the SU user account on my computer, not the domain." I logged in as my SU locally, and sure enough, there was a workspace all setup for that user. I removed the mapping, and was able to go back to my regular user and remap without issue.

    Moral of the story, perhaps another user is logged in on the same machine, which isn't visible from the currently logged in user, thus you cannot remove or even see the mappings.

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

    If the mentioned clues are not helping you then download Team Foundation Sidekick and using that you can delete the workspaces.

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