I have a library targeting netstandard2.0 that I use in a ASP.NET Core 2.2 application that relies on a couple of Microsoft.Extensions packages
Here is my csproj
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="2.2.0" />
</ItemGroup>
</Project>
I now want to be able to use this same library in a new ASP.NET Core 3 application as well as my existing ASP.NET Core 2.2 applications.
Looking at the Microsoft.Extensions.* packages, their versions always appear to match the release versions of ASP.NET Core.
My options are
- Do nothing .. Will this package still work in an
ASP.NET Core 3application? - Upgrade the packages to their
3.0equivalents .. Will this package still work in anASP.NET Core 2application? - Keep the existing package (for
ASP.NET Core 2.2applications), but create a new package using the3.0equivalents for use inASP.NET Core 3.0applications
The overall question is as a library author, what is the correlation between a specific version of a Microsoft.Extensions.* package and its use within a specific ASP.NET Core target?