帮助发布visual studio上删除的文件 [英] Help with files deleted on publish visual studio

查看:135
本文介绍了帮助发布visual studio上删除的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,这里有新人。有人知道如何恢复在visual studio上发布网页时删除的文件吗?我在Web Publish提示中选择了删除现有文件选项,我不小心选择了另一个VS项目的文件夹作为发布文件夹,因此它被删除了。我该如何恢复此文件夹?提前致谢,抱歉我的英语不好。



我的尝试:



查找回收站,查找临时文件夹。

Hello everyone, new guy here. Does anybody know how to recover files that were deleted on publishing a web page on visual studio? I selected the "Delete existing files" option in the Web Publish prompt, and I accidentally selected the folder of another VS project as the publishing folder, so it was deleted. How can I recover this folder? Thanks in advance and sorry for my bad English.

What I have tried:

Looking up in recycle bin, looking up in temp folder.

推荐答案

它已经永远消失了。你需要重新部署被覆盖的应用程序,如果是生产的话。



我建议你创建一个部署过程;所以这永远不会再发生。



我通常发布到文件系统(也就是我的电脑)每个VS Project都有自己的配置文件(.publish)为我保存这些信息。然后我使用RoboCopy复制到目的地,无论是测试还是产品。最重要的是,我使用RoboCopy创建备份。这样,如果部署被搞砸了,那么我有一个备份,我可以在几秒钟内将其放回原处。有新的方法可以做到这一点,但RoboCopy对我很有用。



YouTube有教程和示例
It's gone forever. You'll need to redeploy the application that was overwritten, if it is production.

My suggestion to you is create a deployment process; so this never happens again.

I typically publish to file system (aka my computer) Each VS Project has its own profile (.publish) that saves that information for me. Then I use RoboCopy to copy to the destination, either test or prod. And most importantly, I use RoboCopy to create a backup. This way, if the deployment is screwed up, then I have a backup I can put back out there in seconds. There are new ways to do this, but RoboCopy has served me well.

YouTube has tutorials and examples.


恢复文件的方法之一是使用恢复工具。例如,下面给出了一个免费的非商业用途工具列表:

UnDelete [ ^ ],

Active@ UNDELETE免费软件 [ ^ ]

Recuva [ ^ ]

RedoBackup和恢复 [ ^ ]

等。



注意:没有100%的保证,你将能够恢复所有文件和整个内容。因此, jgakenhe 提供的方法[ ^ ]可能是保护自己不受意外或意外删除的最佳方法,恶意软件或病毒感染的文件。



祝你好运!
One of the way to recover files, is to use recovery tools. For example, below is given a list of free for non-commercial use tools:
UnDelete[^],
Active@ UNDELETE Freeware[^]
Recuva[^]
RedoBackup And Recovery[^]
etc.

Note: there's no 100% guaranty that you'll be able to restore all files and entire content. So, the method provided by jgakenhe[^] is probably the best way to protect yourself for unwanted or accidental deletion, malware or virus infection of files.

Good luck!


这篇关于帮助发布visual studio上删除的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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