Why is TFS ignoring a project in my solution?

27,499

Solution 1

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.

Solution 2

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

Share:
27,499
aceinthehole
Author by

aceinthehole

I’m a technologist and software developer living in the Atlanta area. My interest in software development began when I was young, sitting in front of the family’s Intel 386 at the age of eleven, learning how to program with QBasic. Later I graduated with a bachelor’s degree in Computer Science at University where I also served as the President of the Association for Computing Machinery (ACM), Presidential Fellow, and worked as Student Technology Advisor. In my time as a professional developer, I’ve worked with a wide breadth of technologies. But over the last 10 year I’ve had a focus on integration using the Microsoft stack, working with SOA architectures using RESTful and other webservices varients, along with several middleware products. These days I am primarily focused on developing solutions using Azure PaaS services.

Updated on August 27, 2020

Comments

  • aceinthehole
    aceinthehole over 3 years

    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?

  • aceinthehole
    aceinthehole over 12 years
    Hey Nick thanks for the response. I've checked as well, and it shows that project is bound, connected and valid. I've even tried unbinding it and then re-binding it back to see if it would force a check-in of that project. It did not. The project file is def. not in TFS, b/c a colleague noticed this problem when he could not download the project.
  • Nick Nieslanik
    Nick Nieslanik over 12 years
    @aceinthehole - Sorry about that! My mistake. What happens if you go to the Source Control explorer and try to add the files manually rather than trying to do it via the Solution Explorer?
  • aceinthehole
    aceinthehole over 12 years
    no worries! Thanks for you help. I ended up manually adding the project file via the Team Explorer, and it seems to have to have worked. I am not sure what caused it to begin with but it seems that others can now download the project as expect. If you would like, if you append your answer with the info from your last comment, I'll mark it as correct.
  • Nick Nieslanik
    Nick Nieslanik over 12 years
    @aceinthehole - happy to help. Answer appended.
  • arbitrarystringofletters
    arbitrarystringofletters about 7 years
    @TheLegendaryCopyCoder This worked for me as well. I'm still not sure how it happened in the first place, though.
  • Alexander Derck
    Alexander Derck about 7 years
    @arbitrarystringofletters I never had this as well, only since I downloaded VS2017 it seems like TFS doesn't automatically track new projects. Luckily enough the first suggestion did the trick for me...
  • cyberpirate92
    cyberpirate92 almost 5 years
    For VS 2019, the Change Source Control option is under File -> Source Control -> Advanced