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

编程入门 行业动态 更新时间:2024-10-27 05:25:09
本文介绍了使用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部署不会删除文件

本文发布于:2023-11-15 22:06:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1598372.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   Web

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!