Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restoring delete files with visual studio 2012

I have accidentally removed part of my project thinking that I was in a temp folder. It is an asp.net-mvc 4 application.

I don´t have tfs or any other program monitoring my filesystem.

I had just publish my application. All I have left is a bunch of compiled files, js, css and images.

Is there any tool from Microsoft that I could perform a reverse engineering with or does VS2012 keep track of files so I could restore it.

like image 684
Guilherme Longo Avatar asked Jan 22 '13 17:01

Guilherme Longo


People also ask

How do I recover a deleted file in Visual Studio?

First go to Recycle Bin of your local machine. Your VS code deleted files is there in Recycle Bin. So, Right click on deleted files and select-> Restore option then your deleted files will be automatically restored in your VS code.

How do I permanently delete recoverable files?

Step 1 Right-click on the Recycle Bin from your desktop. Step 2 Click on 'Properties' and then choose the drive for which you want to delete the data permanently. Step 3 After selecting the drive, mark the option called 'Don't move files to the Recycle Bin. Remove files immediately when deleted'.

How do I permanently delete a file in TFS?

Use the tf destroy command to destroy, or permanently delete, version-controlled files from Team Foundation version control. The destroy action cannot be reversed. You must not destroy files that are still needed.


1 Answers

Files you delete in Visual Studio go to Windows recycle bin. Unless you cleared it, your files should still be there. Just restore them and than add them to your project as existing items. You can also drag and drop them through Solution Explorer.

EDIT:

You can also click the "Show All Files" button in solution explorer.

Highlighted: Show All Files button in Solution Explorer

The file will appear there, grayed out (if it was only removed from your project - not your disk drive). Then you can right-click it, and add it back to the ptoject. If it's not there try the first approach.

like image 190
Andrzej Gis Avatar answered Sep 22 '22 19:09

Andrzej Gis