Skip to content

Using v9.0 packages on .NET 8 shouldn't lift Microsoft.Extensions libraries out of the shared framework #5462

@eerhardt

Description

@eerhardt

Today when you reference the 9.0.0-preview.8.24460.1 version of Microsoft.Extensions.Http.Resilience on a net8.0 application, it brings in the v9.0 versions of all the Microsoft.Extensions.* packages from dotnet/runtime.

https://www.nuget.org/packages/Microsoft.Extensions.Http.Resilience/9.0.0-preview.8.24460.1#dependencies-body-tab

image

This causes these packages to be "lifted" out of the shared framework and instead shipped "app local".

Instead, the v9.0 packages from this repo should either:

  • Only reference the v8.0 Microsoft.Extensions.* packages from dotnet/runtime and dotnet/aspnetcore.
  • or
  • Split the version references based on TFM -
    • v8.0 on net8.0
    • v9.0 on net9.0

@joperezr @RussKie @sebastienros

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions