Skip to content

Unnecessary reference to Microsoft.Bcl.AsyncInterfaces for ValueTask usage #61

Closed

Description

@nhs-tkawasaki

In commit f986673, support for .NET Standard 2.0+ and .NET Framework 4.6.1+ was added by introducing package references to Microsoft.Bcl.AsyncInterfaces in ZstdSharp.csproj.
However, if the intent is only to use the ValueTask struct, adding Microsoft.Bcl.AsyncInterfaces is not necessary; adding System.Threading.Tasks.Extensions alone should be sufficient.

After inspecting the compiled DLL's manifest, there is no assembly reference to Microsoft.Bcl.AsyncInterfaces.dll.

Therefore, the Microsoft.Bcl.AsyncInterfaces package reference appears to be removable and can be safely replaced (or simply omitted) in favor of System.Threading.Tasks.Extensions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions