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.
First we will check the list of workspaces from VS 2015 Developer command prompt,
Ex - tf workspaces /owner:*
Now we will get the xml format from VS 2017 Developer command prompt which will have ‘owner id’ for the particular workspace,
Example 1 - tf.exe workspaces /owner:* /computer:ComputerName /collection:https://YOUR-TFS-URL.visualstudio.com /format:xml
We can now delete the workspace for the particular user,
Example 1- Tf workspace /delete ComputerName;[email protected] /server:"https://URL.visualstudio.com"
OR
Example 2 - Tf workspace /delete ComputerName;1e178c77-bb8b-6f05-bf99
/server:https://URL.visualstudio.com
(Where 1e178c77-bb8b-6f05-bf99 is ID of the workspace which you get from Step 2 XML format)
Again we will check the list of workspaces from VS 2015 Developer command prompt,
Ex - tf workspaces /owner:*
Simplest way to do this is to go to your AppData and delete the TFS cache (depending on the version 3.0 or 4.0)
C:\Users{UserName}\AppData\Local\Microsoft\Team Foundation\3.0\Cache or C:\Users{UserName}\AppData\Local\Microsoft\Team Foundation\4.0\Cache
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With