Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2012 - How do I bind my solution to another Team Foundation server?

I have a Visual Studio 2012 (RC) solution bound to a CodePlex server. However, I want to bind it to a Team Foundation Service server instead. I don't care about preserving the history, since I've just started the project anyway. How should I go about binding the solution to the new server?

I've tried File->Source Control->Advanced->Change Source Control, while connected to the Team Foundation Service TFS server, but I can only see that the action Bind is available to me, and this just re-binds to CodePlex. Which is strange, since Visual Studio pointed me to the Change Source Control dialog when I tried to add the unbound solution to the Team Foundation Service server directly.

like image 983
aknuds1 Avatar asked Aug 06 '12 12:08

aknuds1


People also ask

How do I add an existing solution to a Team Foundation Server?

Open your solution in Visual Studio 2017. Go to "Team Explorer" and double click the newly added project name from TFS (it is normally set in a gray color) Go back to "Solution Explorer" and to right mouse click on the solution and select "Add to source control"

How do I add a Team Foundation Server in Visual Studio 2012?

Open Visual Studio 2012 and from the Team menu, click Connect to Team Foundation Server. Click the Servers button. From the Add/Remove Team Foundation Server window, click the Add button.


2 Answers

I found out how to do this with the help of this article. What I did was to, while connected to CodePlex TFS, open File->Source Control->Advanced->Workspaces and then double-click on my workspace item. This launched a dialog where I removed the solution's working folder.

After this I could connect to Team Foundation Service and freely let the solution be source controlled by that server.

like image 162
aknuds1 Avatar answered Nov 08 '22 16:11

aknuds1


In case you moved your project under another SC and you need to bind it to this SC:

  1. Unbind it in the File->Source Control->Advanced->Change Source Control.
  2. In Solution Explorer right click the project and then Source Control->Add Selected Projects to Source Control.
like image 31
optim1st Avatar answered Nov 08 '22 15:11

optim1st