gpt4 book ai didi

tfs - 将解决方案添加到不同的 TFS 团队项目

转载 作者:行者123 更新时间:2023-12-05 01:05:00 24 4
gpt4 key购买 nike

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

    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.

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

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

最佳答案

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

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

关于tfs - 将解决方案添加到不同的 TFS 团队项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22020012/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com