Avoid deleting folder on Web Publish

◇◆丶佛笑我妖孽 提交于 2019-12-03 04:48:58

Is this not just an issue of unchecking the box in the publish wizard (settings step) that says "Delete all existing files prior to publish"? I know that option is available when setting up publishing from the Visual Studio side - it seems to me the Azure publishing credentials just give you the connection, and not the settings which you make through the wizard.

Looking over the question you are linking to and the code you have supplied above, it seems that you need to change the line:

<AbsolutePath>ErrorLog</AbsolutePath>

to

<AbsolutePath>media</AbsolutePath>

as this refers to the folder you do not want to delete. ErrorLog was the folder the other question's author did not want to delete.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!