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
Set
MSDEPLOY_RENAME_LOCKED_FILES=1
in the Azure Function Application Settings usually resolved this
This can also be done in Visual Studio on the Publish -> Application Settings: