Somebody please tell me it is possible to recover Visual Studio source after VS crashes!
I have just spent 5 hours writing a new utility app, and running it with the ‘Save before Build’ option turned on, as well as AutoRecover every 5-mins. But after VS crashed I am unabled to find anything other than an empty project folder!!! I can’t believe that files are only ‘saved’ to memory?!? That can’t be right! That 5 hours of work has to be somewhere on the disk?
I attempted to reproduce the scenario by creating a Junk project, running it, and then killing VS using Task Manager. It wasn’t quite the same situation as a dialog box actually popped up asking to save the project. I ignored this and continued the kill. I was then able to find the Junk source in C:\Users{Username}\AppData\Local\Temporary Projects as advised – but not my earlier project.
I think it’s gone.
In order to make sure this doesn’t happen again in the future, you can go to
Tools > Options > Projects and Solutions
and check the item
Save new projects when created