最近,我使用Visual Studio Studio Tools for Azure Functions将使用C#脚本(*.csx
)的Azure函数转换为预编译的类库。它在Visual Studio 2017中成功构建(以及运行和调试)。使用预编译的Azure函数库生成错误
我想通过我们的CI过程来构建这个AF库。然而,当我运行命令dotnet build
本地失败,出现以下错误:
C:\Users\ray\.nuget\packages\microsoft.net.sdk.functions\1.0.2\build\netstandard1.0\Microsoft.NET.Sdk.Functions.Build.targets(31,5): error : Could not load file or assembly 'Microsoft.Azure.WebJobs.Host, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
同样的错误也发生在我们的CI建设。
不确定为何发生此错误以及如何解决它。它是dotnet CLI的版本(我正在使用v1.1)?还有别的吗?
是的,我看到相同。我们会调查并回复你。 –
谢谢@DavidEbbo –
@RayVega您是否解决了将此问题纳入您的CI过程?我有同样的麻烦(使用Appveyor)。 –