为不同的TFS团队项目添加解决方案

hyp*_*erN 4 tfs visual-studio-2013

我不小心将我的解决方案添加到TFS上错误的团队项目中,我已经进入文件/源代码控制/高级/更改源代码控制,我已经选择了所有项目并解除了绑定,转到解决方案,然后右键单击我已选择Add Solution To Source Control,但弹出窗口显示:

    The item 'ProjectName.sln' is already under source control at the selected location. 
    If you are trying to rebind a project that you have already added to source control 
outside Microsoft Visual Studio, you should use the Change Source Control command. If you are 
adding this project for the first time, you should either choose a different server folder for the project or move the 
existing project to a different server folder.
Run Code Online (Sandbox Code Playgroud)

我试图将项目绑定到新的Team项目,但是当我尝试检入时,并未检查整个项目,但只是添加了更改,因为我不小心将其添加到了错误的Team项目中.

总结一下,现在我如何将我的项目添加到TFS源代码管理?

Dyl*_*ith 5

您需要解除绑定,然后手动将文件移动到映射到正确团队项目的本地文件夹中.然后尝试添加解决方案到源代码管理.

每个团队项目将映射到本地工作区中的不同文件夹.如果您的文件位于项目A的文件夹下(我假设它们已经添加到该团队项目中),那么在尝试绑定到项目B之前,需要将它们移动到项目B下的文件夹中.