Skip to content

Support dotnet standard 2.0 #2

@eltos

Description

@eltos

Is your feature request related to a problem? Please describe.
I like this package and want to use it in a project.
But since the package requires dotnet standard 2.1 it cannot be used with .NET Framework.

Describe the solution you'd like
Support dotnet standard 2.0. The project uses only very little of the 2.1 features. In fact only the DoesNotReturn and DisallowNull attributes from System.Diagnostics.CodeAnalysis in ThrowHelper.cs, and all but one of the affected methods are declared [Obsolete].
Since these are not needed for functionality of the library, I propose removing them and restore 2.0 compatibility

Describe alternatives you've considered
Using other compatible WebP libraries, but I found them either clumpy to use or not properly handling libwebp for both x64 and x86. Or using huge image processing libraries just to get simple WebP support.

Additional context

Quoting from the announcement of the .NET 2.1 standard:

Library authors who need to support .NET Framework customers should stay on .NET Standard 2.0.
In fact, most libraries should be able to stay on .NET Standard 2.0, as the API additions are largely for advanced scenarios.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions