Recently, I have converted an Azure function that used C # script ( *.csx) to a class library with predefined classes using Visual Studio Studio Tools for Azure Functions . It works successfully in Visual Studio 2017 (and also works and is being debugged).
I would like to create this AF library through our CI process. However, when I run the command dotnet buildlocally, it fails with the following error:
C: \ Users \ beam \ .nuget \ packages \ microsoft.net.sdk.functions \ 1.0.2 \ build \ netstandard1.0 \ Microsoft.NET.Sdk.Functions.Build.targets (31.5): Error: not failed to load the file or assembly "Microsoft.Azure.WebJobs.Host, Version = 2.1.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35". The system cannot find the specified file.
The same error also occurs in our CI assembly.
I do not know why this error occurs and how to solve it. Is this the CLI version for dotnet (I am using v1.1)? Is this something else?
source
share