【问题标题】:Add solution to different TFS team project将解决方案添加到不同的 TFS 团队项目
【发布时间】:2014-03-28 00:27:49
【问题描述】:

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

    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.

我尝试将项目绑定到新的团队项目,但是当我尝试签入时,并没有检查整个项目,而是只添加了更改,因为我不小心将其添加到了错误的团队项目中。

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

【问题讨论】:

    标签: tfs visual-studio-2013


    【解决方案1】:

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

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

    【讨论】:

    • 我对@9​​87654321@ 文件有同样的错误,我已经在 tfs 工作区的单独目录中拥有该项目?!
    猜你喜欢
    • 2011-02-15
    • 2011-11-22
    • 2016-10-03
    • 2010-09-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多