作者:我摸你马匹 | 来源:互联网 | 2023-07-26 13:42
ImdeployingmyapplicationtoanAzureWebsite.IveconfiguredthePublishingProfilesuccesfuly
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 integration on each code commit.
我正在将我的应用程序部署到Azure网站。我已经成功配置了发布配置文件,并设置了tfspreview.com,以便在每次代码提交时使用持续集成自动发布。
I have a folder on the path "/media". This folder has pictures and documents uploaded through the CMS (umbraco). This folder gets deleted on each web deploy.
我在路径“/ media”上有一个文件夹。此文件夹包含通过CMS(umbraco)上传的图片和文档。每个Web部署都会删除此文件夹。
From this answer, I learned how to add a SkipDelete rule on either the .csproj or on the wpp.targets file, but everytime I publish the site the whole folder gets deleted anyway.
从这个答案,我学会了如何在.csproj或wpp.targets文件上添加SkipDelete规则,但每次我发布网站时,整个文件夹都会被删除。
Here is the code I'm currently using inside wpp.targets:
这是我目前在wpp.targets中使用的代码:
AddCustomSkipRules
Delete
media
true
2 个解决方案