Build Error with pre-compiled Azure Function Library

∥☆過路亽.° 提交于 2019-12-01 20:13:38

UPDATE 2018-01-08

According to a new answer by @theGRS https://stackoverflow.com/a/48156446/621827 this has been resolved.

Previous Answer

Here's what I've found.

dotnet msbuild uses the Microsoft.NET.Sdk.Functions .NETStandard 1.5 library which if you look at the dependencies on NuGet it doesn't use Microsoft.Azure.WebJobs

But if you use the Visual Studio 2017 msbuild it will use the .NETFramework 4.6 version of the library which includes Microsoft.Azure.WebJobs.

My suggestion is to use MSBuild for now. I've written a tutorial on how to do this.

I was having the same issue as well when running dotnet build, but no longer have this issue after updating Microsoft.NET.Sdk.Functions from 1.0.2 to 1.0.7.

Update to the latest version of this package in your Nuget package manaager and you should be able to run dotnet build again.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!