使用VS 2017发布Web部署不会删除文件 [英] Publish Web Deploy Doesn't Delete Files with VS 2017

查看:84
本文介绍了使用VS 2017发布Web部署不会删除文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆