Skip to content

net8 packages (e.g. Microsoft.Extensions.Http.Polly 8.0.0) target netstandard2.0 (and other various frameworks), but according to Microsoft they can only be used on net8 #52332

Closed
@jjanuszkiewicz

Description

@jjanuszkiewicz

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Package Microsoft.Extensions.Http.Polly, version 8.0.0, targets netstandard2.0. However, Microsoft has stated multiple times (example1, example2, example3) that MS package versions must match the app runtime version where they are used.

As is, this package can be installed in apps targeting any framework and may result in an invalid runtime behaviour, but based on the above linked comments I think it should target net8 (and 9.* should target net9 and so on).

Is this something that can be done for this and other similar packages? Right now all the burden of ensuring correct dependency versions is shifted onto app developers, but it seems it could be solved with a stricter framework targeting.

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-infrastructureIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions