C#C
C#3y ago
Kiel

✅ Making a library as accessible for different .NET versions as possible

I'm developing a simple library meant to be an API wrapper for .NET projects that might want to access it. I'd like it to be usable by as many versions of .NET as possible within reason. What should I target? should I target multiple versions? .NET Standard? I've seen some libraries use multi-targeting and then
#if
blocks for newer-version features, so I guess that's a possibility too?

Or should I just not care and expect users to upgrade/update in order to encourage people not staying on ancient versions?
Was this page helpful?