If the status of your project to the source control of TFS is showing “invalid”, try the following steps.
- File -> Source Control -> Advanced -> Change Source Control
- Select the project that is invalid then click on the “Unbind” button at the top of the window
- Click OK
- Right click on your project in the Solution Explorer window
- Unload the project
- Right click on your project again in the Solution Explorer window
- Reload the project
- Right click on more time on your project in the Solution Explorer window
- Source Control -> Check In
- You may have to additionally select “Include All” under the Exclude section of the check in screen
How to Restore a Lost Source Control Binding with TFS and Visual Studio 2017