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. 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With