Can't change local TFS 2010 paths

Kevin picture Kevin · May 3, 2011 · Viewed 45.3k times · Source

Running VS 2010, I want to now build on TFS 2010. In Team Explorer, I change my connection from our old TFS 2008 build server to our new TFS 2010 server. Now I want to map my source control from the old local directory (C:\TFS) to new directory (C:\TFS2010). Using File -> Source Control -> Workspace, I can change the top level mapping of our projects to the new location, clicking the "recursive" check box.

However, I notice that while the top level mapping changes, the local paths for the second tier folders don't change.

I tried removing all mapping, and I tried refreshing. Tried restarting VS2010. Tried renaming the old directory – that wasn’t allowed.

I haven't tried getting latest from the top level, as that would take way too long and I probably don't have that much disk space.

Oddly, If I go to File -> Source Control -> Cloak while selecting a second tier project folder, it seems to think the mapping has already been updated for that tier.

Any ideas how I can re-map all my projects (or even just some of them), to a different local path?

Answer

Alessandro Lallo picture Alessandro Lallo · Sep 21, 2011

or File -> Source Control -> Workspaces -> Choose the workspace in question and you can remove and create it again