16

我有一个绑定到CodePlex服务器的 Visual Studio 2012 (RC) 解决方案。但是,我想将其绑定到Team Foundation Service服务器。我不在乎保留历史,因为无论如何我才刚刚开始这个项目。我应该如何将解决方案绑定到新服务器?

File->Source Control->Advanced->Change Source Control在连接到 Team Foundation Service TFS 服务器时尝试过,但我只能看到该操作Bind对我可用,而这只是重新绑定到 CodePlex。Change Source Control这很奇怪,因为当我尝试将未绑定的解决方案直接添加到 Team Foundation Service 服务器时,Visual Studio 将我指向该对话框。

4

2 回答 2

39

在这篇文章的帮助下,我发现了如何做到这一点。我所做的是,在连接到 CodePlex TFS 时,打开File->Source Control->Advanced->Workspaces然后双击我的工作区项。这启动了一个对话框,我在其中删除了解决方案的工作文件夹。

在此之后,我可以连接到 Team Foundation Service 并自由地让解决方案由该服务器进行源代码控制。

于 2012-08-06T17:05:58.400 回答
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.
于 2015-04-24T11:14:50.647 回答