Skip to content

Add CompatibilitySuppressions.xml for the Polyfill 11.4.5 shim drift [patch] - #38

Merged
matt-edmondson merged 1 commit into
mainfrom
fix/37-compat-suppressions
Nov 4, 2026
Merged

matt-edmondson merged 1 commit into
mainfrom
fix/37-compat-suppressions

Conversation

@matt-edmondson

Copy link
Copy Markdown
Collaborator

Polyfill 11.4.5 emits its DefaultInterpolatedStringHandler and ExperimentalAttribute shims with different nullable attributes on net9.0 and net10.0. Since Oct 14 that has made dotnet pack fail package validation on main, so v1.1.1-pre.3 is still the latest release and the #30 fix has never shipped.

This adds NoSleep/CompatibilitySuppressions.xml, generated with -p:ApiCompatGenerateSuppressionFile=true. It has 9 entries (8 CP0014, 1 CP0015), all on Polyfill shim types. None is on NoSleep's own API. Sibling repos fixed the same failure the same way.

Validation (SDK 10.0.403, Linux):

  • Without the file, dotnet pack NoSleep/NoSleep.csproj -c Release fails with the CP0014/CP0015 errors from the issue.
  • With the file, the same pack has 0 errors.
  • NoSleep.Test: 29 passed, 0 failed.

Fixes #37


Generated by Claude Code

…[patch]

Polyfill 11.4.5 emits its DefaultInterpolatedStringHandler and
ExperimentalAttribute shims with different nullable attributes on
net9.0 and net10.0, so pack has failed package validation on main
since Oct 14 and v1.1.1-pre.3 is still the latest release. The fix for
#30 has never reached NuGet.

Generated with -p:ApiCompatGenerateSuppressionFile=true: 9 entries
(8 CP0014, 1 CP0015), all on Polyfill shim types and none on
NoSleep's own API. Pack passes with the file and fails without it.

Fixes #37

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

sonarqubecloud Bot commented Nov 2, 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