Skip to content

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

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

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

Conversation

@matt-edmondson

Copy link
Copy Markdown
Contributor

Fixes #149

What changed

This adds CaseConverter/CompatibilitySuppressions.xml, generated with -p:ApiCompatGenerateSuppressionFile=true against the pinned ktsu.Sdk 2.31.2. It holds 11 suppressions: 10 CP0014 and 1 CP0015. All of them are on Polyfill shim types (ExperimentalAttribute.UrlFormat and DefaultInterpolatedStringHandler), between net8.0 and net9.0 and between net9.0 and net10.0. This is the same approach as SvnToGit#153 and Containers#124. There is no code change.

Verification

Run locally on SDK 10.0.403:

dotnet pack CaseConverter/CaseConverter.csproj -c Release -p:SolutionDir=<root>/ -p:SolutionName=CaseConverter
  • On main: fails with "API breaking changes found", with the same CP0014/CP0015 errors as the Release job.
  • On this branch, from a clean bin/obj: exit 0. It produces ktsu.CaseConverter.1.9.2.nupkg and .snupkg.
  • dotnet test --project CaseConverter.Test: 210 passed, 0 failed.

Once this merges, the Release job should publish the fixes from #127, #128, #129, #133 and #135.


Generated by Claude Code

Polyfill 11.4.5 emits ExperimentalAttribute and DefaultInterpolatedStringHandler
into the net8.0 and net9.0 assemblies with nullable and compiler-generated
attributes that differ from the next TFM up, so package validation failed the
Release step with CP0014/CP0015. Generated with
-p:ApiCompatGenerateSuppressionFile=true: 10 CP0014 and 1 CP0015, all on the
polyfilled types.

Fixes #149

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

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

1 participant