Avoid deleting folder on Web Publish

后端 未结 2 1106
粉色の甜心
粉色の甜心 2021-02-07 03:20

I\'m deploying my application to an Azure Website. I\'ve configured the Publishing Profile succesfuly and setup tfspreview.com to publish automatically using continuous integrat

相关标签:
2条回答
  • 2021-02-07 04:05

    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.

    0 讨论(0)
  • 2021-02-07 04:08

    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.

    0 讨论(0)
提交回复
热议问题