Skip to content

Can you remove the dependency on System.Threading.Tasks.Extensions? #1714

@shueybubbles

Description

@shueybubbles

Is your feature request related to a problem? Please describe.

System.Threading.Tasks.Extensions package hasn't been updated since March 2020. It depends on version 4.5.3 of package System.Runtime.CompilerServices.Unsafe
Meanwhile M.D.S also has a dependency on System.Text.Encoding.CodePages version 5, who has a dependency on System.Runtime.CompilerServices.Unsafe version 5.

On Net462 these versions conflict, leading us to having to implement binding redirects and workarounds for unit tests to run.

AutoGenerateBindingRedirects is fine for EXEs but we run our unit tests at build time and the only binding redirect we can readily do there is in code with an AssemblyResolve implementation.

Describe the solution you'd like

Either: Get rid of the dependency on the old package. The rest of the .Net world seems to have upgraded to System.Runtime.CompilerServices.Unsafe version 5 and pulling in version 4 to get Microsoft.Data.SqlClient complicates builds.

Or:
Add an explicit dependency on version 5 of System.Runtime.CompilerServices.Unsafe to trump the indirect dependency

Describe alternatives you've considered

Force M.D.S consumers to implement binding redirects even for test DLLs.

Additional context

Add any other context about the feature request here.

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