Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is TFS ignoring a project in my solution?

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.

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.

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?

like image 934
aceinthehole Avatar asked Nov 09 '11 18:11

aceinthehole


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 to check in project file in TFS?

To do this, I had to go into the Source Control Explorer and open the project directory. From within the directory, right click and select Add Items to Folder. Then you can select the csproj files and you're good to go.


2 Answers

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.

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

like image 88
Nick Nieslanik Avatar answered Sep 18 '22 04:09

Nick Nieslanik


You can try following steps

1 Unbind the project in "Change Source Control" dialog

2 Refresh project to update source control status

3 Right click the project and click Add the Project to source Control in solution explorer

like image 38
user2534830 Avatar answered Sep 17 '22 04:09

user2534830