Search code examples
visual-studiotfsworkspace

TFS workspace error


When I try to do a local mapping from TFS, I get the following error,

The working folder --- is already in use by the workspace ---;User on computer ---

Any ideas on how to solve this?


Solution

  • If the referenced workspace is no longer in use, you can delete it with TF.exe.

    tf workspace /delete [/collection:TeamProjectCollectionUrl] workspacename[;workspaceowner] [/login:username,[password]]

    Ref: https://learn.microsoft.com/en-us/vsts/tfvc/workspace-command?view=vsts

    You can also use a tool like Attrice TFS Sidekicks to find and delete it.

    Otherwise, listen to what the error says and map the workspace in a different folder.