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
Go to the Functions tab in Azure and press the Restart button. Then try to publish again in Visual Studio. Sometimes closing the browser and opening it again or a combination of these things are nessesary.
That is all you need to do.