Once a while when you play around your workspace, use different machines/logins, or change build definitions you might get the following error saying

The path xxx is already mapped in workspace xxx

The error is pretty self-explained but the solution might not be that obvious. Here are few steps you can try:

  • Edit and clean your workspace from Visual Studio
  • Use command line to delete workspace from the server (\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE>tf workspace /delete /collection:<TFSProjectCollectionURI> <WorkSpaceName>;<UserName>)
  • Clean up the work space association from your local cache file (C:\Users\<UserName>\AppData\Local\Microsoft\Team Foundation\3.0\Cache\VersionControl.config)
Advertisements