简体   繁体   中英

Recover local files with Visual Studio

I worked on a couple of files and checked it in. I then excluded them from the project and made a lot of changes. I then got a specific version of the project and now I can only see the files I checked in the first time. Are there any external tools or features of VS or even a temp folder to get those files back?

Are the files still located in your solution directory?

If the files are still in your solution directory but not showing up in your Solution Explorer you can click the button on the top of your Solution Explorer called "Show All Files". After clicking this you should be able to see all files in your solutions directory. Just right click on the file(s) you're interested in and select "Include in project".

Maybe you'll find them on this folder:

%USERPROFILE%\\Documents\\Visual Studio [CHANGE_VERSION]\\Backup Files

I found the answer to my question. I went to File -> Open -> In the window it allows me to open previous versions of the file. And I saw my changes there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM