为什么TFS忽略了我的解决方案中的项目? [英] Why is TFS ignoring a project in my solution?

查看:101
本文介绍了为什么TFS忽略了我的解决方案中的项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的解决方案中的TFS 2010存储库中有多个项目.最近几天,我已向该解决方案添加了大约5个新项目.

I have multiple projects in our solution that is in our TFS 2010 repository. I've added about 5 new projects to this solution in recent days.

我发现对于其中一个项目,项目文件本身不会签入TFS.该项目中包含的所有工件都可以正常工作.他们已签到,我可以在团队资源管理器中看到它们.但是我看不到Team Explorer中的项目文件,解决方案资源管理器中项目旁边的图标也无法显示其签入状态.

I have found that for one of the projects, that the project file itself will not check-in to TFS. All of the artifacts contained in this project are working fine; they are checked in and I can see them in the Team Explorer. But I cannot see the project file in Team Explorer, nor is their an icon next to the project in Solution Explorer that would indicate its checked in status.

此外,在Visual Studio的上下文菜单中单击与TFS相关的任何选项,都会将这些选项应用于项目中包含的文件,而不是实际项目本身.

Also, clicking on any of the TFS related option in the context menu in Visual Studio results in those options being applied to the file contained in the project, not the actual project itself.

这可以补救吗,还是我必须创建一个全新的项目并将旧项目中的所有工件重新添加到其中?

Can this be remedied or do I have to create an entirely new project and add all of the artifacts from the old project back into it?

推荐答案

您的项目没有适当的源代码控制绑定!打开解决方案后,您需要转到File -> Source Control -> Change Source Control来查看项目的绑定.失败的主机可能会显示未知"或未绑定状态.然后,您可以使用该对话框更正绑定并签入项目文件.

Your project doesn't have appropriate Source Control Bindings! With the solution open, you'll need to go to File -> Source Control -> Change Source Control to view the bindings for your projects. The failing one probably will show an "Unknown" or not binded status. You can then use that dialog to correct the binding and check in the project file.

附加的替代解决方案- 导航到Team Explorer -> Source Control并使用"将项目添加到文件夹"菜单项手动添加文件.

Appended Alternate Solution - Navigate to the Team Explorer -> Source Control and manually add the files using the "Add Items to Folder" menu item.

这篇关于为什么TFS忽略了我的解决方案中的项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆