Change TFS source code mapping in Visual Studio 2013

I have several solutions that were previously mapped to hosted TFS. Their local mapping was also defined, and all source code was local. Since then I have unsubscribed from TFS and started using visualstudio.com as my TFS server.

I logged into one of the solutions, deleted the * .vssscc files from the solution and the * .vspscc files from each nested project. When I open the solution in VS 2013, the output window gives me a message that the original TFS (now not signed) is unavailable and that the solution is open offline.

As a result, when I select the Change Control Source option, it first asks me to log in to the old TFS whose credentials are no longer valid.

He also tells me that the local directory that I am trying to map to the new TFS is already mapped to the old TFS. How to remove this mapping without access to old TFS?

+7
tfs visual-studio visual-studio-2013 source-control-explorer
source share
3 answers

The answers here work when the old TFS server is available. Mine was not, but was not removed from the list of servers in VS. Removing this entry allowed me to completely remove the solution from the source element along with the display and add it to another version control server.

0
source share

Probably the easiest way is to remove the mappings using the command line

tf workspaces /remove workspacename;owner /collection:http://urlto.old:8080/tfs/ProjectCollection

After deleting the old workspace configuration for the current folder and associating the folder with your new subscription, Visual Studio will offer you to automatically update the solution bindings to the new server.

This will not remove your workspace from the server (which tracks workspaces), but since you no longer have access to it, this should be enough so that your client forgets that the folder is mapped.

+3
source share

Not sure if this works if you are offline, but you can remove the display by opening the Manage Workspaces in the Source Control Explorer (click on the option ... in the drop-down list to the right of the workspace :)

Manage workspacesSelect a workspaceModifyDelete or change the display.

+3
source share

All Articles