Can’t remove workspace from TFS

tfs

I want to add my project from Visual Studio 2012 to my TFS server, but it says the path is already mapped for workspace pc;administrator (this is a local workspace).

I have tried the command tool tf but it says that there are no workspaces, so I can't delete the workspace that is conflicting.

I'm running Windows 8 with Visual Studio 2012. TFS is on a windows server 2012.

Best Answer

The problem is that the current project location, the folder on your physical machine, is mapped to a different TFS server. To add it to source control you need to move it to a physical location not associated with a TFS server.

Edit To remove the offending workspace:

1) Use the "Team" menu to connect to the TFS Server that you do NOT want to be mapped to

2) Use ctrl+q --> workspaces to access the workspaces menu

3) Remove the workspace

4) Change to the TFS Server you WANT to be mapped to using the "Team" menu again

5) ctrl+q --> workspaces

6) Add a new workspace

Related Topic