I have two .NET Core 3.1 projects in Visual Studio 2019 16.4.3:
MyProject.Infrastructure (Class Library)
MyProject.Function (Azure Function V3)
The MyProject.Function project has a reference to MyProject.Infrastructure project. The MyProject.Infrastructure project has the Microsoft.AspNetCore.Identity 2.2.0 NuGet package installed.
When I compile the MyProject.Function project I get the following warning:
warning MSB3277: Found conflicts between different versions of "Microsoft.Extensions.Options" that could not be resolved.
It looks like MyProject.Infrastructure uses version 3.1 of Microsoft.Extensions.Options because the AspNet Identity NuGet package uses Microsoft.AspNetCore.App 3.1 while MyProject.Function uses version 2.1 of Microsoft.Extensions.Options because the latest azure function NuGet Microsoft.NET.Sdk.Functions 3.0.2 uses Microsoft.AspNetCore.App 2.1.
Will Microsoft.NET.Sdk.Functions be updated soon to use Microsoft.AspNetCore.App 3.1? If not what can I do to fix the issue? Should I install the latest version of Microsoft.Extensions.Options NuGet package into the MyProject.Function project?