如何恢复项目文件夹的已删除c#文件 [英] How do I recover a deleted c# files for project folder

查看:307
本文介绍了如何恢复项目文件夹的已删除c#文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这听起来很愚蠢而且没有相关的编码但我没有选择留给我



我正在开发一个没有任何版本控制的winform项目我使用每周进行一次备份并将其放在共享文件夹上



今天编码4天后我尝试将我的exe粘贴到应用程序服务器并突然(可能是我使用了一些奇怪的快捷键)我的app.config文件被删除了。因此我尝试通过在vs2013中构建应用程序来重新创建它。



现在应用程序不可用,当我转到项目文件夹时,项目实现的文件如.csproj和.cs文件甚至缺少引用和ico文件丢失。但我可以在项目文件夹中看到模块的文件夹结构。



之前有人遇到过这个问题吗?我尝试使用许多恢复工具恢复文件但是没有得到文件。任何人都建议一个想法或更好的恢复工具的vs2013文件..

我知道这个qstn值得一个downvote但我有nos选项左

I know it sounds stupid and not something related coding but I have no option left with me

I was working on a winform project without any version control I use to take the backup once a week and put it on shared folder

Today after 4 days coding I tried to copy paste my exe to a application server and all of a sudden (may be i had used some weird shortcut key) my app.config file get deleted. So i tried to recreate it by building the app in vs2013.

Now the application is unavailable and when i go to the project folder the project realted files like .csproj and .cs files are missing even the references and the ico files are missing. But I can see the folder structure of the modules inside the project folder.

Do anyone faced the issue before?,I tried to recover the files using many recovery tools but failed to get the files.can anyone suggest a idea or better recovery tools for vs2013 files..
I know this qstn worth a downvote but I have nos option left

推荐答案

一般情况下,这样做可能为时已晚,文件可能永远丢失,具体取决于删除后的操作。在编程中,丢失以前版本的源文件比在大多数其他情况下更有可能。



您可以尝试使用任何第三方恢复文件公用事业。你可以很容易地找到一些免费软件。我认为我们不能在这个网站上宣传这些产品。



您的真实问题非常不同。显然,您没有使用任何版本控制系统( http://en.wikipedia.org/wiki/Revision_Control_System [< a href =http://en.wikipedia.org/wiki/Revision_Control_Systemtarget =_ blanktitle =New Window> ^ ])。这是不好的。这种系统可以是开源的,重量极轻,可靠,易于使用。我会说,在你开始在所有项目中使用一个之前,你并没有真正进行软件开发,没有拥有它,让它出现在第一个系统故障或一手牌之下。更糟糕的是,你无法追溯你的步骤。



请参阅此讨论:修订控制系统,可供选择? [ ^ ]。



< dd> -SA
In general case, it can be too late to do so, the files could be lost forever, depending on what have you done after you deleted them. In programming, loosing of the previous versions of the source files is way more likely than in most other cases.

You can try to restore the file using any 3rd-party utilities. You can easily find some freeware. I don't think we can promote these products on this site.

Your real problem is very different. Apparently, you are not using any Revision Control system (http://en.wikipedia.org/wiki/Revision_Control_System[^]). This is bad. Such system can be open-source, extremely light-weight, reliable, easy to use. I would say, until you start to use one on all your projects, you are not really doing software development, not owning it, leaving it to the first system malfunction or a slip of a hand. Worse, you cannot retrace your steps.

Please see this discussion: Revision control systems, which to choose from?[^].

—SA


它们应该仍然在垃圾文件夹中(除非您删除了更多/更大的文件,因为删除了要恢复的文件)。单击桌面上的回收站图标,查看它们是否在那里。如果是这样,右键单击并在上下文菜单中选择还原。
They should still be in the trash folder (unless you've deleted a lot more/larger files since deleting the ones you want to recover). Click the Recycle Bin icon on your desktop and see if they're in there. If so, right click and select the Restore in the context menu.


文件被覆盖或以某种方式删除。所以我所做的是http://www.wikihow.com/Recover-Overwritten-Files [ ^ ]
The files got overwritten or removed somehow.so what i had done is http://www.wikihow.com/Recover-Overwritten-Files[^]


这篇关于如何恢复项目文件夹的已删除c#文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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