How to choose target framework from Nuget package
According to the official document Matching assembly versions and the target framework in a project:
When NuGet installs a package that has multiple assembly versions, it
tries to match the framework name of the assembly with the target
framework of the project.
So, just as Matt said: "NuGet will use the assembly that is the closest match. More specific target framework wins.", NuGet will install the .net framework assembly to your .net framework project.
To resolve this issue, you can use Matt suggestion, directly reference the .NET Standard assembly yourself in the project or you can download that nuget package manually, set it to the local feed, open it with NuGet Package Explorer, delete the folder net45
under the lib
folder, install that package from local feed, then nuget will use the dll from the standard folder.
Hope this helps.