Here's my problem: In order to save space on our build server, I set up a build retention policy to keep the latest build only, thinking that this will only delete the files in the drop location.
Now I need to go back to a deleted build to include a bug fix and provide a patch. That's when I started to wonder where all our labels went...
Well, by now I've figured out that there's this option "what to delete" in the retention policy and will set it up to NOT delete build labels from now on, but is there any way that I can still reliably get the source files that were used to create this deleted build?
I will probably end up using the modified date of the deployed assembly to get the source code in this particular case, but since it's not 100% reliable and I deleted a LOT of build labels so it won't be the last time I have to face this problem, it would be nice to have a better solution.
Edit: The reason why I think there might be a solution is this article: http://blogs.msdn.com/adamroot/pages/working-with-deleted-build-data-in-team-foundation-server-2010-beta-1.aspx.
I just don't know how to get source files from the data that's apparently still there after deleting a build.