ExtensionsMetadataGenerator error when upgrading Azure Functions SDK

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


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.