将新项目添加到TFS中的现有解决方案 [英] Adding a new project to an existing solution in TFS

查看:614
本文介绍了将新项目添加到TFS中的现有解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将一个项目添加到当前使用TFS进行源代码控制的现有解决方案中,但是由于某些原因,我无法检入新项目.当我查看未决的更改时,新项目中的所有文件都不会显示.这些文件旁边都没有加号(对于新文件).我做错什么了?我如何解决它?是时候办理登机手续了.

I added a project to an existing solution that is currently under source control using TFS, but for some reason I cannot check in the new project. When I view my pending changes, none of the files in the new project show up. None of the files have a plus (for a new file) next to them. What did I do wrong? How do I fix it? It's time to check in.

推荐答案

问题是解决方案失去了绑定.这就是为什么在添加新项目时它不会自动签出的原因.

The problem is the solution has lost its binding. That's why it's not checking out automatically when you add the new project.

为了在VS 2010中还原绑定,请转到文件"->源代码控制"->更改源代码控制".查找解决方案:您的解决方案名称",如果未绑定,则会显示"no server".单击它,然后从工具栏中单击绑定".

In order to restore the binding in VS 2010, go to File->Source Control->Change Source Control. Look for the "Solution: your solution name" and if it's not bound it will say "no server". Click on it and then click "Bind" from the toolbar.

在Visual Studio 2012/2013中,它是File-> Source Control-> Advanced -> Change Source Control(感谢danglund).

in Visual Studio 2012/2013 it's File->Source Control->Advanced->Change Source Control (Thanks to danglund).

这应该创建一个正确绑定的新vssscc文件.现在添加新项目,一切都将正常运行.

This should create a new vssscc file that is correctly bound. Now add the new project and everything should work correctly.

这篇关于将新项目添加到TFS中的现有解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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