Azure / azure-functions-vs-build-sdk

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

Microsoft.NET.Sdk.Functions v.1.0.24 uses WindowsAzure.Storage v.7.2.1 that is deprecated. #562

Open Hakuroda opened 2 years ago

Hakuroda commented 2 years ago

Azure Functions Runtime version 1.x is still support and to develop that version of application we use Microsoft.NET.Sdk.Functions v.1.0.24. But in that sdk it uses WindowsAzure.Storage v.7.2.1 that is deprecated already. I think there is a conflict.

ASK

CURRENT BEHAVIOR

But if we dig that dependency tree deeper, then I found out this sdk has a dependency for WindowsAzure.Storage that is deprecated already. -Dependency tree

image

And this nuget package is deprecated. https://www.nuget.org/packages/WindowsAzure.Storage/7.2.1

image

I found a similar issue and it seems that we should update sdk version. https://github.com/Azure/azure-webjobs-sdk/issues/2644

Hakuroda commented 2 years ago

UPDATES The latest version of Microsoft.NET.Sdk.Functions is v.1.0.38. And this package references Microsoft.Azure.WebJobs v.2.3.0. This Microsoft.Azure.WebJobs package is the last version of v.2.x and updated on 2018/11/29 thus I think Microsoft.NET.Sdk.Functions need reference Microsoft.Azure.WebJobs v.2.x.

Also it seems that Azure Functions host runtime version 4 started to support .NET Framework 4.8 so I guess we should not use Microsoft.NET.Sdk.Functions v.1.x instead should use Microsoft.NET.Sdk.Functions v.4.x... https://docs.microsoft.com/en-us/azure/azure-functions/dotnet-isolated-process-guide#supported-versions