Azure Function CI生成错误-当该文件已存在时无法创建该文件 [英] Azure Function CI Build Error - Cannot create a file when that file already exists

查看:93
本文介绍了Azure Function CI生成错误-当该文件已存在时无法创建该文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

This issue is pretty straightforward, the functionapp fails to build with this one error. I found it interesting that it's stopping on the copy of a .pdb file. I've stopped and restarted the function app and ran "sync", no improvement.

"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]

推荐答案

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

I updated the Microsoft.NET.Sdk.Functions nuget package in my project to v1.0.1, pushed the change to GIT, and now Azure Functions builds my project.

这篇关于Azure Function CI生成错误-当该文件已存在时无法创建该文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆