Skip to content

feat(observability.abstractions): multi-target net8.0/net9.0/net10.0 - #68

Merged
FEDERIN merged 2 commits into
mainfrom
feat/multi-target-observability-abstractions
Oct 19, 2026
Merged

FEDERIN merged 2 commits into
mainfrom
feat/multi-target-observability-abstractions

Conversation

@FEDERIN

@FEDERIN FEDERIN commented Oct 19, 2026

Copy link
Copy Markdown
Owner

What

Multi-targets Core.Observability.Abstractions (and its unit test project) to net8.0;net9.0;net10.0, following the same pattern as Core.Correlation, Core.Memory and Core.Redis (#66, #67).

The net8.0 asset is unchanged; the net9.0/net10.0 assets are new. Public API is identical across all three TFMs.

Changes

  • src/Core.Observability.Abstractions: <TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks> plus an explicit empty <TargetFramework /> so the SDK runs the cross-targeting (outer) build.
  • Directory.Packages.props: Microsoft.Extensions.Configuration(.Abstractions), Microsoft.Extensions.Diagnostics.HealthChecks and Microsoft.Extensions.Options are now pinned per TFM with conditional PackageVersion ItemGroups. CPM permits one version per id, so each TFM needs its own conditional group. Configuration.Abstractions had to move too: HealthChecks -> Hosting.Abstractions -> Configuration.Abstractions raised the floor above the unconditional 8.0.0 pin and produced NU1109 (downgrade).
  • packages.lock.json regenerated for both projects.
  • Version bumped to 1.1.0 in all four csproj properties (Version, AssemblyVersion, FileVersion, InformationalVersion); PackageReleaseNotes and README updated for 8/9/10.
  • AGENTS.md and MEMORY.md record the multi-targeting state and the NU1109 gotcha.

Ready to publish

The version, release notes, metadata and lock files are all in place. Publishing is tag-driven: Core.Observability.Abstractions/v1.1.0 will build this project and push it to NuGet.org and GitHub Packages.

The central CoreSystem.Observability.Abstractions pin in Directory.Packages.props deliberately stays at 1.0.2: Core.Resilience, Core.RateLimiting and Core.Observability consume the published package, and bumping the pin to the unpublished 1.1.0 would break RestoreLockedMode. The pin moves (and those three republish) only after this tag.

Verification

  • dotnet build CoreSystem.sln — 0 warnings, 0 errors.
  • dotnet format CoreSystem.sln --verify-no-changes — clean.
  • dotnet test --solution CoreSystem.sln -c Release — 270/270 (Abstractions 3/3 per TFM).
  • Generated CoreSystem.Observability.Abstractions.1.1.0.nupkg contains lib/net8.0, lib/net9.0 and lib/net10.0.

src/Core.Observability.Abstractions (with its unit tests) now builds for
net8.0;net9.0;net10.0, using the same <TargetFramework /> clearing trick as
Core.Correlation, Core.Memory and Core.Redis.

- Directory.Packages.props: Microsoft.Extensions.Configuration(.Abstractions),
  Microsoft.Extensions.Diagnostics.HealthChecks and Microsoft.Extensions.Options
  are pinned per TFM through conditional PackageVersion ItemGroups. HealthChecks
  -> Hosting.Abstractions -> Configuration.Abstractions means a single
  unconditional Configuration.Abstractions pin forced NU1109 (downgrade).
- packages.lock.json regenerated for both projects.
- Version bumped to 1.1.0 in all four csproj properties; PackageReleaseNotes and
  README updated for 8/9/10.
- No public API or behavior change; the net8.0 asset is unchanged.
- The central CoreSystem.Observability.Abstractions pin stays at 1.0.2 so the
  three packages that consume it still restore against the published package.

Verified: solution builds with 0 warnings, dotnet format --verify-no-changes
clean, dotnet test --solution CoreSystem.sln 270/270 (Abstractions 3/3 per TFM),
and the nupkg contains lib/net8.0|net9.0|net10.0.

Ready to publish: awaiting the tag Core.Observability.Abstractions/v1.1.0.
@FEDERIN
FEDERIN merged commit c2d013c into main Oct 19, 2026
7 checks passed
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