Skip to content

Turn on package validation against each major's last release - #73

Merged
readingdancer merged 1 commit into
developfrom
chore/package-validation
Nov 23, 2026
Merged

readingdancer merged 1 commit into
developfrom
chore/package-validation

Conversation

@readingdancer

Copy link
Copy Markdown
Member

Summary

Turns on NuGet package validation, per the kit convention. Each major's pack is compared with its last release on nuget.org and fails on a breaking public API change.

+  <PropertyGroup>
+    <EnablePackageValidation>true</EnablePackageValidation>
+  </PropertyGroup>
   <PropertyGroup Condition="'$(UmbracoMajor)' == '17'">
+    <PackageValidationBaselineVersion>17.0.0</PackageValidationBaselineVersion>
   ... 18 -> 18.0.0, 19 -> 19.0.0-rc.1

The baselines sit with the other per-major values in Directory.Build.props. docs/RELEASING.md (step 9) and CONTRIBUTING.md say to move a major's baseline after each release, and that packing needs network access. CI's pack step needs no change: its versions (17.0.1-ci.N, release tags) are all above the baselines, and the jobs have network access.

Evidence

Before: pack never compared against a release. After, dotnet pack -c Release succeeds with 0 warnings:

  • 17: -p:Version=17.0.1 (SDK 10), baseline 17.0.0
  • 18: -p:Version=18.0.1 (SDK 10), baseline 18.0.0
  • 19: -p:Version=19.0.0-rc.2 (SDK 11), baseline 19.0.0-rc.1

dotnet build and the 376 unit tests pass for 17.

Deliberate break (made FeatureFlagOverrideSavedNotification internal, packed 17, then reverted):

error CP0001: Type 'Umbricians.FeatureFlags.Overrides.FeatureFlagOverrideSavedNotification' exists on [Baseline] lib/net10.0/Umbricians.FeatureFlags.dll but not on lib/net10.0/Umbricians.FeatureFlags.dll
error : API breaking changes found. If those are intentional, the APICompat suppression file can be updated ...

Merge Danger

Door: two-way

Blast Radius: build

🤖 Generated with Claude Code

https://claude.ai/code/session_01WAQdHxWd7ft8XjqRAeyGB6

Packing now compares the public API with the last release of the same major
(17.0.0, 18.0.0, 19.0.0-rc.1) and fails on a breaking change, since the API
of a major must not break.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WAQdHxWd7ft8XjqRAeyGB6
@readingdancer
readingdancer merged commit 8bda957 into develop Nov 23, 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