I found an interesting page about .NETStandard.Library:
What is the .NETStandard.Library metalanguage?
On this page, the author says the following:
Thus, even if your project is targeting .NET Standard version 1.3 (or multi-targeting), you can still use the latest version of the NETStandard.Library package (1.6.1 at the time of writing). The package itself is versioned primarily because it also contains various support tools, such as a list of standard .NET versions.
In the Microsoft documentation, I found the following information about your question:
It may seem strange that it targets netstandard1.3, but uses the version of NETStandard.Library version 1.6.0. This is a valid use case since the meta-package supports older versions of netstandard. It may be that you have standardized the version of the meta-package version 1.6.0 and use it for all of your libraries that target different versions of netstandard. With this approach, you only need to restore NETStandard.Library 1.6.0, and not earlier versions.
Link: See .NetStandard
I think that he will ever use the latest version of .NETStandard.Library, because it is compatible with older versions of .NETStandard, and this is just a meta-package with links and a set of standard .Net APIs. Therefore, this should not be a problem if your package uses the version of .NETStandard.Library 1.6.1
Note. If you use .NETStandard 2.0 and use the version of .NETStandard.Library 1.6.1, this will not work!
Refresh . As mentioned in the comments on this answer, the minimum version of .NETStandard.Library is version 1.6.0!
source share