Does Visual Studio 2010 create backup files?

雨燕双飞 提交于 2019-12-22 05:10:39

问题


Just got a random bsod on my machine and Form1.cs is suddenly empty, any way to restore the code? thanks..


回答1:


You could check C:\Documents and Settings\UserName\My Documents\Visual Studio 2010\Backup Files\ (or the equivalent on your system).

Files will be placed there if auto-recover is enabled, which I believe it is by default. If you want to check that feature is enabled, follow the steps here: http://blogs.msdn.com/b/zainnab/archive/2010/06/30/autorecover-vstipenv0019.aspx

Another top tip is to set 'Save all changes' before building. That setting is in Options, under Projects and Solutions / Build and Run.



来源:https://stackoverflow.com/questions/3900743/does-visual-studio-2010-create-backup-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!