I am using the \"Azure Web App Deployment\" build step in VSTS to publish an ASP.NET Core API to an Azure Web App:
Occasionally, this step breaks with the f
I was getting the same error while I was trying to publish my Azure Function App. I followed this Microsoft document and did the following steps.
Add in PropertyGroup tag
netcoreapp2.1
v2
true
Save and Rebuild your solution
Now publish again
If that didn't work for you, you can always add MSDEPLOY_RENAME_LOCKED_FILES=1 as Mr. Ben mentioned in his answer, to your Application settings. You can do that from Visual Studio itself.
Hope it helps