Consider there is a class library which targets following frameworks:
- net45
- .NET Standard 2.0
- .NET Standard 2.1
That is my configuration:
<TargetFrameworks>net45;netstandard2.0;netstandard2.1</TargetFrameworks>
Let's say this library is a public NuGet package and I don't know which runtime versions consumers will ever use.
How can I as vendor to test my library with these 3 target frameworks? I know for testing I have to pick runtimes in my test project. That part is clear and easy. For instance for my library I could pick runtime net45 for framework net45.
But then what about testing for netstandard2.0 or netstandard2.1? How could I technically achieve that I test against netstandard2.1? For instance runtime netcoreapp3.1 supports netstandard2.0 and netstandard2.1 - but which one will be then chosen as both are compatible?
Maybe it is the wrong term to say to test against these 3 target frameworks? Maybe it is rather to test for specific runtimes. That I don't know and try to answer that for me.