Azure Function: Publish fails with message “Web Deploy cannot modify the file on the Destination because it is locked by an external process.”

前端 未结 6 872
猫巷女王i
猫巷女王i 2021-02-01 13:25

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

6条回答
  •  耶瑟儿~
    2021-02-01 14:22

    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:

提交回复
热议问题