azure函数ci生成错误-无法在文件已存在时创建该文件

piv4azn7  于 2021-06-20  发布在  Kudu
关注(0)|答案(1)|浏览(465)

这个问题非常简单,functionapp无法构建,只有一个错误。我发现它停在一个.pdb文件的副本上很有趣。我已停止并重新启动功能应用程序,并运行“同步”,没有任何改善。

"D:\home\site\repository\API.Routing\API.Routing.csproj" (default target) (1) ->
(_GenerateFunctionsPostBuild target) -> 
  D:\home\.nuget\microsoft.net.sdk.functions\1.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]
q9yhzks0

q9yhzks01#

我将项目中的microsoft.net.sdk.functions numget包更新到v1.0.1,将更改推送到git,现在azure functions构建了我的项目。

相关问题