使用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部署不会删除文件
发布评论