我正在使用VSTS中的“Azure Web App部署”构建步骤将ASP.NET Core API发布到Azure Web App:
有时,此步骤会出现以下错误:
[error]Microsoft.Web.Deployment.DeploymentDetailedClientServerException:
Web Deploy cannot modify the file ‘MyProject.Api.exe’ on the
destination because it is locked by an external process. In order to
allow the publish operation to succeed,you may need to either restart
your application to release the lock,or use the AppOffline rule
handler for .Net applications on your next publish attempt. Learn
more at:
07001.
This GitHub issue提出了同样的问题,但没有使用Azure Web App部署构建步骤的建议解决方案.