Skip to content

[bug] targets other than net9.0 shouldn't be forced to use 9.0 dependencies #5973

@paulomorgado

Description

@paulomorgado

Package

OpenTelemetry

Package Version

Versions 1.10.0 and those that take dependencies on it.

Runtime Version

net8.0, netstandard2.1, netstandard2.0, net462

Description

.NET 8.0 and the libraries tied to it will be supported until November 10, 2026 while .NET 9.0 and the libraries tied to it May 12, 2026.

Forcing users that want or need to be on the long term support channel to move to .NET 9.0 will expose them to possible breaking changings now and, on May 12, 2026 and November 10, 2026.

Given that OpenTelemetry is a cross-cutting concern and touches every application and service, forcing .NET 9.0 libraries on users that want or need to be on the long term support channel will prevent them from using the latest OpenTelemetry libraries.

Steps to Reproduce

Create an Aspire starter application targeting .NET 8.0 and upgrade OpenTelemetry components to the latest versions.

Expected Result

.NET 9.0 libraries is not forced upon the services.

Actual Result

.NET 9.0 libraries is forced upon the services.

Additional Context

I'm willing to send a PR to fix this.

Metadata

Metadata

Labels

pkg:OpenTelemetry.ApiIssues related to OpenTelemetry.Api NuGet packagequestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions