Visual Studio Recover Deleted File

Visual Studio Recover Deleted File

Recover Deleted files. Have you deleted any file from visual studio project? Here are trick to recover those deleted files and include it in project. You may have deleted the files accidently and later found that it's important file. If you are using source control like Visual studio team foundation server, you may get the old copy of it from server. However, in case you lost the files on local machine you can recover those files by following tricks.

Recover deleted file from recycle bin.

Do you know all deleted files goes to Recycle bin folder of the system. Just open the recycle bin and find or arrange files by modified dates. Once you see deleted files select them and right click to restore back to original location.

Visual studio Recover deleted files.

How to include existing files in visual studio.

To include existing files in project, right click on project inside solution explorer. Browse the file to include by clicking on Add existing item.

Visual studio add existing items.

Visual studio Recover deleted file using reflector tool.

Before re-building the project, browse the debug folder and find the dll. Drag and drop the dll into reflector tool or open that dll in reflector tool.

Recover project from dll.

In reflector, you can recover all your code and deleted file code. You can’t recover aspx page files using this technique.

Suppose that you don’t have solution except dll how can you work with such a project? It’s very simple just open the dll of project in Reflector and decompile to recover the code and classes from that dll.

It’s one of my faverite tool that every dotnet developer should know.

link to download Reflector: Dotnet Reflector./

Tags:

ASP.net File HandlingC# Delete All Files In DirectoryAsp.net delete file file on Server C#.net and VB.net codeAsp.net File UploadC# Get File SizeNo Visual Studio template information found See the application log in Event Viewer for more detailsCould not load file or assembly SystemServiceModelDomainServicesHosting Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 or one of its dependencies The system cannot find the file specifiedC# Read File Line By LineC# File ExistsRead Text File in (C#.net or VB.net)C#-move files from folders

Author

My name is Satalaj, but people call me Sat. Here is my homepage: . I live in Pune, PN and work as a Software Engineer. I'm former MVP in ASP.net year 2010.
Disclaimer: Views or opinion expressed here are my personal research and it has nothing to do with my employer. You are free to use the code, ideas/hints in your projects. However, you should not copy and paste my original content to other web sites. Feel free to copy or extend the code.
If you want to fight with me, this website is not for you.
 

I'm Satalaj.