我正在使用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
发布评论