如何在Visual Studio 2010中找回丢失的代码文件数据 [英] how to retrive lose code file data in visual studio 2010

查看:321
本文介绍了如何在Visual Studio 2010中找回丢失的代码文件数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..

今天,当我在Visual Studio 2010中打开我的项目时,我正在处理我的项目,那时候我的代码文件{.cs}被打开,并且系统重新启动.然后当我再次打开vs时,我看到代码填充为null,所有代码都丢失了.

现在,当我打开该文件时,它将在记事本中打开.我没有找到我的代码


所以任何人都可以帮我找回我所有的代码.


thx

Hi..

I am working on my project today when i open my project in visual studio 2010 that time my code file {.cs} was opened a nd system was restartaed. then when i again open my vs and i see that code fill it was null all code was lose.

now when i open that file it''s opening in notepad. and i didn''t find my code


so can anyone help me is it possible to retrive my all code.


thx

推荐答案

除非您保留备份,使用源代码管理或它在回收站内,否则不要这样做.
重启时可能会写入副本.有可能在
C:\ Users {用户名} \ AppData \ Local \ Temporary项目
但是有可能它已经被清理了.
对不起!是时候学习计算规则1-4了:
Not unless you keep backups, use source control, or it is inside the recycle bin.
The chances are that the copy was being written when the restart occurred. There is a possiblity that it is in
C:\Users{Username}\AppData\Local\Temporary Projects
But the chances are it has been cleaned already.
Sorry! Time to learn rules 1 through 4 of computing:
1) Save often
2) Backup often
3) Save oftener than that
4) Did I mention saving and backups? Now would be a good time to do both...


这篇关于如何在Visual Studio 2010中找回丢失的代码文件数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆