I was writing code all day yesterday, reorganizing some projects, refactoring code, etc, etc. Lots of work - something I would be very loathe to have to repeat. A lot of the code I had written over the last few weeks and hadn't yet checked into source control because it was still undergoing testing and analysis.
Upon shutting down Visual Studio it crashed. More accurately, an Add-In crashed, bringing down VS.NET with it. I really thought nothing of it...that is, until today when I opened my project. Some of the key files I had been working on yesterday were missing. A little perturbed, I selected the 'Show All Files' option. There they were so I reincorporated then into the project and I figured all was well. I investigated the files and saw they were empty except for the basic, empty class definition - no code! I started to sweat, but I figured that if it didn't save those files, I could recreate the refactorings from the files from which I extracted the code originally. No dice! I went back to the old files and saw that all the code had been deleted. In other words, it saved my changed to the original files, but died before saving my changes to the new refactorings. All of the code was gone.
Now I was a little more than sweating, you know that feeling when you're watching a scary movie and you just know that someone is about to jump out, but you don't know when or where? Well, I was going through that.
My saving grace was that I hadn't recompiled (nor would I have been able to with the compiler errors it would have introduced). I could open the library that I had built yesterday in Reflector and see all my source code. Phew! Granted, I've lost my XML comments (which were plentiful and abundant), but that's nothing compared to the code I would have lost. I simply need to reincorporate the code, rename the variables, and I should be back in business.
Remember Me
a@href@title, b, i, strike
Powered by: newtelligence dasBlog 2.0.7226.0
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2008R. Aaron Zupancic
E-mail