16

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.

John Saunders
  • 160,644
  • 26
  • 247
  • 397
aknuds1
  • 65,625
  • 67
  • 195
  • 317

2 Answers2

39

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.

aknuds1
  • 65,625
  • 67
  • 195
  • 317
  • This also worked for re-binding from one Team Project Collection to another Team Project Collection. – TreK Jun 07 '13 at 17:49
  • Yea great this worked. Just make sure the current Server is the one you want to disconnect from. I was connected to the other one and deleted the workspace... and nothing happened. I switched back to mine and then it worked. Phew :) – Piotr Kula Jan 11 '14 at 14:08
  • This dialog box has been a frustrating mess for as long as I can remember - but fortunately this works. It seems that the 'bind' feature is more of a boolean if a workspace exists - which really is how it was designed to be (so the workspace maps the local files to the server). It is just frustrating when many MS help documents tell you to 'unbind' and then 'bind' to the new location which for TFS doesn't work. – Simon_Weaver Nov 06 '16 at 01:51
2

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.
optim1st
  • 153
  • 3
  • 13