Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding a new project to an existing solution in 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.

like image 806
coder1 Avatar asked Oct 24 '08 17:10

coder1


People also ask

How do I add a project to solution in TFS?

In the Connect to Team Project dialog box, select the TFS instance you want to connect to, select the team project collection you want to add to, and then click Connect. In the Team Explorer window, right-click the team project collection, and then click New Team Project.

How do I add a project to Team Foundation Server?

Right-click your project or project suite in the Project Explorer and then click Source Control > Add to Team Foundation Server.

How do I add an existing project to a solution in Visual Studio?

In Solution Explorer, select the solution. On the File menu, point to Add, and click Existing Project. In the Add Existing Project dialog box, locate the project you want to add, select the project file, and then click Open. The project is added to the selected solution.


1 Answers

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

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.

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

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

like image 142
Tomer Pintel Avatar answered Sep 22 '22 20:09

Tomer Pintel