Azure / azure-functions-vs-build-sdk

MSBuild task for Azure Functions
MIT License
96 stars 62 forks source link

"The ExtensionsMetadataGenerator package was not imported correctly. Are you missing ...." #546

Closed andrei-faber closed 2 years ago

andrei-faber commented 2 years ago

I'm getting this warning on build: The ExtensionsMetadataGenerator package was not imported correctly. Are you missing 'C:\Users\andreifaber\.nuget\packages\microsoft.azure.webjobs.script.extensionsmetadatagenerator\4.0.1\build\Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.targets' or 'C:\Users\andreifaber\.nuget\packages\microsoft.azure.webjobs.script.extensionsmetadatagenerator\4.0.1\build\Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.props'? AcsDiagnosticsProcessor C:\Users\andreifaber\.nuget\packages\microsoft.net.sdk.functions\4.1.0\build\Microsoft.NET.Sdk.Functions.targets 74

VS2019, .NET Core 3.1 Microsoft.NET.Sdk.Functions v4.1.0 Restoring the NuGet packages manually doesn't resolve it.

kshyju commented 2 years ago

@andrei-faber For a V3 function app, you should be using the 3x version of the Microsoft.NET.Sdk.Functions package, not the 4X version like 4.1.0.

Can you try the latest in V3 version, which is 3.1.1 at the time of this writing, in your V3 function app?

https://www.nuget.org/packages/Microsoft.NET.Sdk.Functions/3.1.1

ghost commented 2 years ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.