简体   繁体   English

使用Visual Studio恢复本地文件

[英]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? 是否有VS的任何外部工具或功能或什至是临时文件夹来恢复这些文件?

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 %USERPROFILE%\\ Documents \\ Visual Studio [CHANGE_VERSION] \\备份文件

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. 我在那里看到了我的变化。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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