Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ExtensionsMetadataGenerator error when upgrading Azure Functions SDK

I upgraded my azure function sdk from 1.0.14 to 1.0.28 and I get this build error:

The ExtensionsMetadataGenerator package was not imported correctly.

I can't find any documentation or ways to resolve it.

like image 786
toshiomagic Avatar asked Jun 07 '19 16:06

toshiomagic


Video Answer


2 Answers

According to the 1.0.28 function sdk released several day ago, it may have some bugs in it.

Workaround:

Manually adding the Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator nuget package to your project and it will work well.

like image 154
Joey Cai Avatar answered Oct 13 '22 01:10

Joey Cai


I got this error when starting with the Visual Studio Function App template which uses Microsoft.NET.Sdk.Functions 1.0.31 and is a .NET Core 2.0 App.

Nuget Package Manager wants to update the Microsoft.NET.Sdk.Functions package to version 3.0.2 which it tries to do but the app is still .NET Core 2 and you get the error:

The ExtensionsMetadataGenerator package was not imported correctly.

To resolve this update the application to .NET Core 3: enter image description here

like image 29
Jeff Widmer Avatar answered Oct 13 '22 02:10

Jeff Widmer