Repository navigation
feat(observability.abstractions): multi-target net8.0/net9.0/net10.0 - #68
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Multi-targets
Core.Observability.Abstractions(and its unit test project) tonet8.0;net9.0;net10.0, following the same pattern asCore.Correlation,Core.MemoryandCore.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.HealthChecksandMicrosoft.Extensions.Optionsare now pinned per TFM with conditionalPackageVersionItemGroups. CPM permits one version per id, so each TFM needs its own conditional group.Configuration.Abstractionshad to move too:HealthChecks -> Hosting.Abstractions -> Configuration.Abstractionsraised the floor above the unconditional 8.0.0 pin and produced NU1109 (downgrade).packages.lock.jsonregenerated for both projects.Version,AssemblyVersion,FileVersion,InformationalVersion);PackageReleaseNotesandREADMEupdated for 8/9/10.AGENTS.mdandMEMORY.mdrecord 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.0will build this project and push it to NuGet.org and GitHub Packages.The central
CoreSystem.Observability.Abstractionspin inDirectory.Packages.propsdeliberately stays at 1.0.2:Core.Resilience,Core.RateLimitingandCore.Observabilityconsume the published package, and bumping the pin to the unpublished 1.1.0 would breakRestoreLockedMode. 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).CoreSystem.Observability.Abstractions.1.1.0.nupkgcontainslib/net8.0,lib/net9.0andlib/net10.0.