How can I remove/fix a ghost workspace

前端 未结 3 1351
孤街浪徒
孤街浪徒 2021-02-14 03:19

Somehow I have ended up with a \"ghost\" workspace. It doesn\'t show up in Visual Studio under Manage Workspaces. When I connect to VS Team Services and open source control expl

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-14 04:15

    What's happened here is that you have two identities with the same display name. One of the identities is an old identity that was created with your Microsoft Account (MSA). The new identity is your Azure AD account (AAD). Internally, they have different GUIDs. When you run the tf command workspace /delete command with the owner name that was displayed, the ambiguous display name is resolved to the current identity (AAD) rather than the old identity (MSA) that actually owns the workspace.

    I can't remember for sure, but it's possible you could run tf workspace /delete and use a wildcard for the owner if you are certain that you can safely delete all workspaces for any owner with that workspace name (be very careful to make sure you don't delete someone else's workspace).

    I'd recommend trying the Attrice Sidekick for TFS and using the manage workspaces functionality there to see if you can delete the workspace under your old identity. That will be the safest and easiest route if it works.

提交回复
热议问题