[英]Web Deploy: How to keep files on a specific destination folder
Scenario 情境
Question 题
How to keep the existing files on destination for the upload folder without removing the "Remove addtional files..." option from the deployment settings? 如何在不从部署设置中删除“删除其他文件...”选项的情况下,将现有文件保留在上传文件夹的目标位置?
Apparently you can do it with wpp.targets file. 显然,您可以使用wpp.targets文件执行此操作。 Then skip only the folder you want... 然后仅跳过您想要的文件夹...
<ItemGroup>
<MsDeploySkipRules Include="SkipErrorLogFolder1">
<SkipAction>Delete</SkipAction>
<ObjectName>FolderPath</ObjectName>
<AbsolutePath>ErrorLog</AbsolutePath>
</MsDeploySkipRules>
</ItemGroup>
Have a look here, see first there: 在这里看看,首先在这里看到:
MSbuild command line parameter for skipping the directory 用于跳过目录的MSbuild命令行参数
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.