简体   繁体   English

使用VS 2017发布Web部署不会删除文件

[英]Publish Web Deploy Doesn't Delete Files with VS 2017

Publishing my local site to an Azure profile with web deploy method. 使用Web部署方法将本地站点发布到Azure配置文件。 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). 我已经看到了这个问题的类似版本,其答案建议检查``发布时删除所有文件''(VS 2017中不是一个选项)或删除bin和obj文件夹然后重新发布(尝试几次)。

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 . 您可以右键单击您的项目->发布,然后按照下面的屏幕截图检查选项删除目标处的其他文件

在此处输入图片说明

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM