Build Error with Azure Precompiled Function Library

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?

+4
source share
2 answers

UPDATE 2018-01-08

@theGRS fooobar.com/questions/1684760/..., .

.

dotnet msbuild Microsoft.NET.Sdk.Functions .NETStandard 1.5, , NuGet, Microsoft.Azure.WebJobs

Visual Studio 2017 msbuild, .NETFramework 4.6, Microsoft.Azure.WebJobs.

- MSBuild. , .

+7

dotnet build, Microsoft.NET.Sdk.Functions 1.0.2 1.0.7.

Nuget, dotnet build.

+1

Source: https://habr.com/ru/post/1684760/


All Articles