Skip to content

KafkaFlow.Abstractions assembly version issue with System.Threading.Tasks.Extensions in .NET Framework #716

@gnjack

Description

@gnjack

KafkaFlow.Abstractions references the delisted version 4.6.1 of System.Threading.Tasks.Extensions:

<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.6.1" />

System.Threading.Tasks.Extensions should be frozen at assembly version 4.2.1.0 for all package versions:

However, System.Threading.Tasks.Extensions 4.6.1 incorrectly bumped the assembly version to 4.2.2.0 (and was delisted as a result):
Image

This was resolved by: dotnet/maintenance-packages#212
The latest version of System.Threading.Tasks.Extensions 4.6.3 uses assembly version 4.2.1.0:
Image

However KafkaFlow.Abstractions still references the delisted package, which means if used in .NET Framework with any other recent version of the package, the above error is thrown as it appears like it is being downgraded:

Error CS1705: Assembly 'KafkaFlow' with identity 'KafkaFlow, Version=4.2.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Threading.Tasks.Extensions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' which has a higher version than referenced assembly 'System.Threading.Tasks.Extensions' with identity 'System.Threading.Tasks.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'

The fix would be to update the package reference in KafkaFlow.Abstractions.

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