Share →

Surprisingly, you can, at least in Visual Studio Team System 2005 (including SP1). If you’ve deleted your team project using TfsDeleteProject, the source code files are still actually there in the database, just not visible any longer. To recover the files, you’ll need to create a new team project with the same name as the deleted team project. Once the new team project is created “POOF”, you have access to all your old source code. (You’ll need to check the “Show deleted files” checkbox in your source control options, otherwise you won’t see the files in the Source Control Explorer.)

Please note that this will not work in Visual Studio 2008 (Orcas) and beyond.

Update:  As Steve Shippee mentions in the comments, this will NOT recover your documents stored in SharePoint!  It only recovers those documents stored in version control.  (Which brings up a practice I believe is good — backing up your SharePoint documents to TFS Version Control at the end of every iteration.  But that’s for another blog post.)

Thanks, Steve, for that vital point!!!! 

Print Friendly
Tagged with →  
  • steven.shippee

    What is assumed from this post is that we all recognize that any and all documents that were in the Share Point realm will be gone – no small condition given that Share Point is where most documents pertaining to collaboration would have been residing?

    Steven Shippee