Publish Web Deploy Doesn't Delete Files with V

2019-08-16 02:04发布

Publishing my local site to an Azure profile with web deploy method. If I delete a file and publish, the file remains on the server. I've seen similar versions of this question with answers suggesting either to check the 'delete all files when publishing' (not an option in VS 2017) or to delete bin and obj folders and re-publish (tried several times).

Any other suggestions on getting files to sync when publishing?

1条回答
孤傲高冷的网名
2楼-- · 2019-08-16 02:35

You could right-click your project -> publish, then follow the screenshots below to check the option Remove additional files at destination.

enter image description here

enter image description here

查看更多
登录 后发表回答