Skip to content

feat: add net8.0 target framework#27

Merged
thorstenalpers merged 1 commit into
mainfrom
feature/net8-target
Jun 12, 2026
Merged

feat: add net8.0 target framework#27
thorstenalpers merged 1 commit into
mainfrom
feature/net8-target

Conversation

@thorstenalpers

Copy link
Copy Markdown
Owner

Adds net8.0 to the library's target frameworks (netstandard2.0;net8.0;net10.0).

Why

The package already ran on .NET 8 via the netstandard2.0 asset — but that asset excludes the ASP.NET Core instrumentation (OpenTelemetry.Instrumentation.AspNetCore is conditioned on != netstandard2.0, and the #if !NETSTANDARD2_0 code paths are compiled out). So .NET 8 web apps got tracing/metrics/logging + HttpClient + Runtime, but no ASP.NET Core instrumentation and no ExcludedPaths request filter.

A dedicated net8.0 target (LTS) closes that gap: .NET 8 consumers now resolve the net8.0 asset and get full feature parity with net10.0. .NET 9 apps fall back to the net8.0 asset cleanly.

Changes

  • csproj: TargetFrameworks now netstandard2.0;net8.0;net10.0. The existing != netstandard2.0 condition automatically pulls in AspNetCore instrumentation for net8.0; the #if !NETSTANDARD2_0 guards already cover it.
  • AGENTS.md / README.md: TFM references and the ASP.NET Core requirement updated.

Verification

  • dotnet build succeeds for all three TFMs (netstandard2.0, net8.0, net10.0), 0 warnings.
  • 92 unit tests green.

Note

No <Version> bump or release note here — per GitHub Flow the version is cut separately by the prepare-release skill. This is a new feature for consumers (MINOR), so the next release should be 2.1.0.

netstandard2.0 consumers on .NET 8 fell back to the netstandard2.0 asset, which
excludes ASP.NET Core instrumentation. A dedicated net8.0 target gives .NET 8
(LTS) consumers the full feature set, on par with net10.0.
@thorstenalpers thorstenalpers merged commit 6cf2f7e into main Jun 12, 2026
1 check passed
@thorstenalpers thorstenalpers deleted the feature/net8-target branch June 12, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant