Azure Function CI 生成错误 - 文件已存在时无法创建该文件

Azure Function CI Build Error - Cannot create a file when that file already exists

这个问题很简单,functionapp 因这个错误而无法构建。我发现它在 .pdb 文件的副本上停止很有趣。我已经停止并重新启动函数应用程序和 运行 "sync",没有任何改善。

"D:\home\site\repository\API.Routing\API.Routing.csproj" (default target) (1) ->
(_GenerateFunctionsPostBuild target) -> 
  D:\home\.nuget\microsoft.net.sdk.functions.0.0\build\netstandard1.0\Microsoft.NET.Sdk.Functions.Build.targets(26,5): error MSB3677: Unable to move file "D:\home\site\repository\API.Routing\bin\Release\net461\API.Routing.pdb" to "D:\home\site\repository\API.Routing\bin\Release\net461\bin\API.Routing.pdb". Cannot create a file when that file already exists. [D:\home\site\repository\API.Routing\API.Routing.csproj]

我将项目中的 Microsoft.NET.Sdk.Functions nuget 包更新为 v1.0.1,将更改推送到 GIT,现在 Azure Functions 构建了我的项目。