Search code examples
asp.netvisual-studiovisual-studio-2012visual-studio-2013restore

Visual Studio Project restore old version


I am working on an ASP.NET web project in Visual Studio 2013 and it worked couple of hours before. But an hour ago I was tweaking something in the project and messed up the entire project. Is there anyway to restore to the version I had yesterday?


Solution

  • If you are using Version control, such as Mercurial, GIT, Subversion, TFS -- and you remembered to commit your work then YES, definitely.

    If you're not using Version Control then you need to ask yourself why not? And don't turn off the computer today until you've corrected that oversight.

    Also, you may have previous versions/restore points saved for you in Windows. In windows explorer, right click on the folder where your work is being saved and select properties. They may be a 'previous versions' tab, and inside there you may be able to revert to an earlier version. If so: lucky lucky you.

    Also, if your work is being shared using a service like DropBox, you will be able to find earlier versions of your solution or project files.

    There is one other technique, and I... I hesitate to mention this. What you need is a DeLorean car from the eighties, and enough plutonium to generate 1 point 21 GigaWatts. You also need.... forget it, no, Version Control is your best bet. Or Ctrl+Z.