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

查看:29
本文介绍了将新项目添加到 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中恢复绑定,请转到文件->源代码管理->更改源代码管理.查找解决方案:您的解决方案名称",如果未绑定,它将显示无服务器".单击它,然后单击工具栏中的绑定".

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天全站免登陆