visual-studio Visual Studio 2010 是否创建备份文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3900743/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Does Visual Studio 2010 create backup files?
提问by user471570
Just got a random bsod on my machine and Form1.cs is suddenly empty, any way to restore the code? thanks..
刚在我的机器上随机出现了一个bsod,并且Form1.cs突然空了,有什么办法可以恢复代码?谢谢..
回答by PaulG
You could check C:\Documents and Settings\UserName\My Documents\Visual Studio 2010\Backup Files\(or the equivalent on your system).
您可以检查C:\Documents and Settings\UserName\My Documents\Visual Studio 2010\Backup Files\(或系统上的等效项)。
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
如果启用了自动恢复,文件将被放置在那里,我相信这是默认设置。如果要检查该功能是否已启用,请按照以下步骤操作: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.
另一个重要提示是在构建之前设置“保存所有更改”。该设置位于项目和解决方案/构建和运行下的选项中。

