Visual studio 2013 team project has been deleted

I just experienced this as my colleague deleted projects in TFS where I have connection to those projects. The way i solved it:

In Team Explorer, click to Pending Changes. you will see there are four section in it which is Comment, Related Work Items, Included Changes and Excluded Changes. Look at Excluded Changes section if there are any files which belong to deleted folder. If yes, right click at the file name and choose Undo.


This is how I solved it:

  • Go to Team Explorer.
  • In the left you will find "Folders".
  • Right click on "DefaultCollection" (or the collection the project you deleted -used to be in) and choose "Undo Pending Changes".
  • Choose the files of the project you have deleted.
  • Confirm the Undo changes.

The best thing to do is to click on the Pending Changes box (shown below) on the Team Explorer menu of Visual Studio. Then scroll down to the perpetrator project and undo the changes by right click => Undo pending changes (as detailed above).

This is better because Visual Studio won't even give you the opportunity to do anything as the error message will keep popping up.

Here is a screenshot of the button that you need to click in order to get to the Problematic project and undo its pending changes:

enter image description here