Tips on Connecting to the New Team Foundation Server and moving a project

It can be a challenge to move a project from one TFS source control to another.  This is because TFS has the concept of workspaces.  These workspaces are generally behind the scenes so you do not know they are being created.  If you try and move a project that is currently associated with a workspace it will complain when you try and connect the same project with a new source control.

The first step is to remove the workspace binding.  To find the workspaces go to: File>Source Control>Workspaces.
 
This will bring up the ‘Manage Workspaces’ window.

By selecting edit or double clicking on a name, the ‘Edit Workspace’ window will opened.

Select the workspace for the project you want to move to the new sever and delete it. VS should
allow you to move the project without any additional problems.  To connect to the new server
go to: Tools>Connect to Team Foundation Server…

Click on the server button then on the Add/Remove Team Foundation Server window select Add.
Enter CorpTFS01 and OK, then Close.  Select the new Server in the drop down list of the ‘Connect
To a Team Foundation Server’ dialogue box.  The available Team Projects for the selected sever
will be displayed.  Select all or the specific projects that you are interested in and click OK.

This article is part of the GWB Archives. Original Author: Geordie

New on Geeks with Blogs

  • We Won The One Award I Actually Care About

    Full Scale made the Inc. 5000 for the fifth year straight, the 12th listing across my three companies. Here is why the one award you cannot buy is worth stopping for.

  • Your Customers Build the Features Now

    I let a tool I liked sit dead for a year rather than build the features I wanted. An MCP server meant I never had to, and your customers can do the same to your product.

  • Get the Size of a Directory in Linux the Easy Way

    du -sh for the quick answer, ncdu for the cleanup, df for the disk itself: every command for checking directory size in Linux, plus why du and df never agree.

  • Vim Search and Replace: The Ultimate Guide

    One :%s command replaces every match in a file before a find dialog would even open. The Vim substitute patterns worth the muscle memory: flags, ranges, capture groups, and multi-file edits.