Skip to content

Regenerate CompatibilitySuppressions.xml after the Polyfill 11.4.5 bump [patch] - #208

Open
matt-edmondson wants to merge 1 commit into
mainfrom
fix/207-polyfill-compat-suppressions
Open

matt-edmondson wants to merge 1 commit into
mainfrom
fix/207-polyfill-compat-suppressions

Conversation

@matt-edmondson

Copy link
Copy Markdown
Contributor

Fixes #207

What

This PR regenerates SingleAppInstance/CompatibilitySuppressions.xml. Polyfill 11.4.5 changed nullable and compiler-generated attributes on its embedded ExperimentalAttribute and DefaultInterpolatedStringHandler shims. Package validation therefore fails with 10 × CP0014 and 1 × CP0015 between the net8.0, net9.0 and net10.0 assets, so pack on main fails and no release ships. None of the diagnostics touch SingleAppInstance's own API.

  • Added: the 11 shim suppressions.
  • Removed: two CP0016 entries on T:ktsu.SingleAppInstance.SingleAppInstance (NullableAttribute / NullableContextAttribute). These no longer fire, so the generator drops them.

How it was made

dotnet pack SingleAppInstance/SingleAppInstance.csproj -c Release -p:ApiCompatGenerateSuppressionFile=true on SDK 10.0.403, the same SDK as CI.

Verification

  • On main, without the regenerated file: dotnet pack -c Release fails with the 11 CP0014/CP0015 errors.
  • With the regenerated file: dotnet pack -c Release succeeds, with validation on and generation off.
  • dotnet test: 42/42 passed.

This is the same fix as ktsu-dev/DelegateTransform#91 and the open "Regenerate CompatibilitySuppressions.xml" PRs in Sorting, FuzzySearch, Invoker and others.


Generated by Claude Code

…mp [patch]

Polyfill 11.4.5 changed the nullable and compiler-generated attributes on its
embedded ExperimentalAttribute and DefaultInterpolatedStringHandler shims, so
package validation reported 10 CP0014 and 1 CP0015 between the net8.0, net9.0
and net10.0 assets, and pack has failed on main since. The diagnostics are on
Polyfill's internal shims, not on SingleAppInstance's API.

Regenerated with `dotnet pack -c Release -p:ApiCompatGenerateSuppressionFile=true`
on SDK 10.0.403. This adds the 11 shim entries and drops the two CP0016 entries
on SingleAppInstance that no longer fire.

Fixes #207

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017vfJW4kJTwmbNJbKX5P18J
@sonarqubecloud

sonarqubecloud Bot commented Nov 1, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants