TFS无法识别添加的项目VS2013

编程入门 行业动态 更新时间:2024-10-11 07:33:12
本文介绍了TFS无法识别添加的项目VS2013的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用VS2013和TFS Online。

I am working with VS2013 and TFS Online.

有时我添加新项目时,源代码管理无法将其识别为已添加项目,但是csproj是更新了新文件的路径。当合作伙伴获得最新版本并尝试进行复制时,它说缺少文件。

When I add a new item some time the Source Control doesn't recognize it as added item but the csproj is updated with the new file's path. When a partner get the latest version and try to copile, it says that a file is missed.

当我签入时,我发现无法添加某些文件包括用于签入。有时添加的文件没有加号图标,因此我可以使用添加到源代码管理将其添加,但是有时有加号图标,但我仍然无法签入文件。

When I am checking in I see that some added files can't be included for check in. Sometimes added files doesn't have the plus icon so I can add it with "Add to source control" but sometimes the plus icon is there and I still can't check in the file.

资源中的png和Winform的cs会发生这种情况

It's happening with png in resources and cs of a Winform

推荐答案

听起来像您不喜欢没有将解决方案/项目正确绑定到TFS-这是使VS与TFVC(本地和服务器)一起使用时必须采取的步骤。

Sounds like you don't have the Solution/Project bound to TFS correctly - this is a step you must take to make VS work with TFVC (local and server).

如果未通过解决方案资源管理器中的项目文件上的图标进行设置,则:

You can usually tell when it is not setup by the icons on the project file in Solution Explorer:

未设置:

设置:

注意挂锁

要设置绑定,请转到文件> 源代码控制> 高级> 更改源代码控制...

To setup the bindings go to File > Source Control > Advanced > Change Source Control...

选择项目和/或解决方案,然后单击绑定:

Select the project and/or solution and click Bind:

一旦解决方案被绑定,添加到它的新项目也将被绑定。

Once the solution is bound, new projects added to it will also be bound.

也,如果您以前已经设置了它,但是它不起作用,请结帐此答案-它向您展示了当混乱时如何重做绑定。

Also, if you have set this up in the past and it's not working, checkout this answer - it shows you how to redo the bindings when the are messed up.

更多推荐

TFS无法识别添加的项目VS2013

本文发布于:2023-11-08 06:23:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1568587.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:无法识别   项目   TFS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!