Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Move a project to a different Team Foundation Server

I would like to know if there's a way to move a project in one Team Foundation Server source control to a different source control on a separate Team Foundation Server? I don't want to have to copy the files to a different folder and map that folder to the new TFS server. I've tried removing the bindings and unmapping the local source control folder on my compute, but when I do this it removes the solution file and all source code files from my local folder. Is there a way I can maintain the source code files locally and just simply map and bind that folder to the new TFS server? Your insight is appreciated, thank you.

like image 307
kingrichard2005 Avatar asked Sep 28 '10 18:09

kingrichard2005


People also ask

How do I add a project to Team Foundation Server?

Right-click your project or project suite in the Project Explorer and then click Source Control > Add to Team Foundation Server. Click Add to Team Foundation Server on the Source Control toolbar (if the toolbar is hidden, right-click the toolbar area and select Source Control).

How do I open a project from Team Foundation Server?

Select Add Server to connect to a project in Team Foundation Server. Enter the URL to your TFS server and select Add. Select a project from the list and select Connect.


2 Answers

You can remove the workspace from the old folder, so the folder is not mapped anymore to the old server. Then connect to the new TFS server and add the files to source control by either drag 'n drop or by starting the add folder command on the Source Control Explorer.

like image 193
Ewald Hofman Avatar answered Oct 17 '22 12:10

Ewald Hofman


A few minutes ago a successfully change a project source control, to be sure when writing this answer.Let me explain how i do that;

Firstly i opened project that is still binded to old source control. Then i unbound all of the bindings at to old server. Then i saved my solution and close it. (I am not sure is this neccessary but i deleted my .vssc files) After this i'd opened the solution again and deleted my workspace from old tfs (i checked no physical file delete occurs) Then i changed my source control and Added My Project to new TFS.

You can try this but please get backup for safety :)

like image 23
bahadir arslan Avatar answered Oct 17 '22 12:10

bahadir arslan