Using the TFS tools in VS2010, I had added a CodePlex server. I had mapped a project on there to a local path, say C:\MyProject Later, we moved the project to a dedicated TFS server, so I added a new TFS server, and deleted the CodePlex one. This in turn removed the “workspace” for it.
However, now if I try to map a project in the second TFS server to C:\MyProject, I get the error:
The path C:\MyProject is already mapped in workspace MY-MACHINE;SND\myCodeplexUserName [https://tfs.codeplex.com/tfs/tfs32]
If I go to File | Source Control | Workspaces... in VS, that CodePlex workspace is not listed (since I had deleted the TFS server reference)
Does anyone know of another way to remove the existing mappings?
Use the command line utility
tfwith theworkspaceandworkspacescommands. You may also find theworkfoldcommand useful.Open a Visual Studio Command Prompt and type:
I had to do this the other day to delete all the workspaces for a collection that was moved to a different server. In my case, the command was
tf workspace /delete /collection:<url>. Usetf workspacesto display all your current workspaces.