I am developing an Azure Functions Project and when I publish first time, OK. Then I publish again, this Error appears:
Web Deploy cannot modify the file
Following this article, you could also try adding this directive in your Web Deploy pubxml to instruct taking the Function app offline while deploying:
True