使用VS 2017发布Web部署不会删除文件 [英] Publish Web Deploy Doesn't Delete Files with VS 2017
问题描述
使用Web部署方法将本地站点发布到Azure配置文件.如果删除文件并发布,该文件将保留在服务器上.我已经看到这个问题的类似版本,其答案建议是检查发布时删除所有文件"(VS 2017中不是一个选项),或者删除bin和obj文件夹然后重新发布(尝试几次).>
还有其他有关在发布时使文件同步的建议吗?
您可以右键单击您的项目->发布,然后按照下面的截图检查选项在目标位置删除其他文件.
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?
You could right-click your project -> publish, then follow the screenshots below to check the option Remove additional files at destination.
这篇关于使用VS 2017发布Web部署不会删除文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!