Docs: Contradictory advice

Created on 16 Oct 2018  Â·  4Comments  Â·  Source: dotnet/docs

If I have a netstandard 2.0 library that can also target net461 without any code changes, should I ?

"CONSIDER adding a target for net461 when you're offering a netstandard2.0 target" indicates that I should to improve the experience for developers that are still on .NET Framework 4.6.1.

"AVOID using multi-targeting with .NET Standard if your source code is the same for all targets." seems to indicate that I shouldn't.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Area - .NET Guide product-question

Most helpful comment

Right, so I should always multi target netstandard2.0 and net461?

All 4 comments

I read that as: Don't add a bunch of .NET Standard targets if the code is the same, just use the lowest one. Additionally, due to a few issues in the .NET framework that weren't resolved until v4.7.2, including a v4.6.1 target is nice for those using v4.6.1 - v4.7.1 even though it's technically .NET Standard 2.0

Right, so I should always multi target netstandard2.0 and net461?

If possible and you want to, that is the advice. You don't have to obviously.

I'm going to close this unless you have any other questions. Thanks!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sime3000 picture sime3000  Â·  3Comments

ygoe picture ygoe  Â·  3Comments

stanuku picture stanuku  Â·  3Comments

ite-klass picture ite-klass  Â·  3Comments

stjepan picture stjepan  Â·  3Comments