Visual Studio 2010 是否创建备份文件?
我的机器上刚刚出现随机蓝屏,Form1.cs 突然变成空的,有什么方法可以恢复代码吗?谢谢..
Just got a random bsod on my machine and Form1.cs is suddenly empty, any way to restore the code? thanks..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以检查
C:\Documents and Settings\UserName\My Documents\Visual Studio 2010\Backup Files\
(或系统上的等效项)。如果启用自动恢复,文件将放置在那里,我相信这是默认情况。如果您想检查该功能是否已启用,请按照此处的步骤操作:http://blogs.msdn.com/b/zainnab/archive/2010/06/30/autorecover-vstipenv0019.aspx
另一个重要提示是在构建之前设置“保存所有更改”。该设置位于“选项”中的“项目和解决方案/构建和运行”下。
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.