我不小心将解决方案添加到TFS上的错误Team项目中,我转到了文件/源代码控制/高级/更改源代码控制,我选择了所有项目并取消了绑定,转到了解决方案,然后右键单击我选择了“将解决方案添加到源代码管理”,但弹出窗口显示:
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.
我尝试将项目绑定到新的Team项目,但是当我尝试签入时,并未检查整个项目,而是仅添加了更改,因为我不小心将其添加到错误的Team项目中。
总结一下,现在如何将项目添加到TFS源代码管理中?
您需要取消绑定,然后手动将文件移动到映射到正确团队项目的本地文件夹中。然后尝试执行将解决方案添加到源代码管理。
每个团队项目都将映射到本地工作区中的不同文件夹。如果您的文件位于项目A的文件夹下(假设您已经将其添加到该团队项目中,则假定它们位于文件夹中),那么在尝试绑定到项目B之前,需要将它们移动到项目B下的文件夹中。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句