Registry Mirror
Skip to content

Conversation

@matt-edmondson

Copy link
Copy Markdown
Contributor

Fixes #259

What changed

  • New TUI/CompatibilitySuppressions.xml, generated with dotnet pack TUI/TUI.csproj -c Release -p:ApiCompatGenerateSuppressionFile=true. This is the same fix ScopedAction used (Regenerate CompatibilitySuppressions.xml for the TFMs the SDK now builds [patch] ScopedAction#86).
  • It has 11 suppressions (CP0014/CP0015) between the lib/net8.0, lib/net9.0 and lib/net10.0 assets. Every one targets System.Diagnostics.CodeAnalysis.ExperimentalAttribute or System.Runtime.CompilerServices.DefaultInterpolatedStringHandler, which Polyfill 11.4.5 embeds with different nullable/compiler-generated attributes per TFM. None of them covers TUI's own API, so package validation still guards TUI's public surface.

Tests

  • On main (72ef8aa), dotnet pack TUI/TUI.csproj -c Release fails package validation with the CP0014/CP0015 errors from the issue.
  • On this branch, after a clean (TUI/bin, TUI/obj removed), the same command succeeds and creates ktsu.TUI.2.1.0.nupkg and .snupkg.
  • Full suite (dotnet test): 348/348 pass.

After this lands, the Release step may still be blocked by the org-wide expired NuGet key (ktsu-dev/.github#48). That is a separate problem.


Generated by Claude Code

Polyfill 11.4.5 embeds ExperimentalAttribute and
DefaultInterpolatedStringHandler with different nullable and
compiler-generated attributes per target framework, so `dotnet pack`
failed ApiCompat package validation (CP0014/CP0015) between the
net8.0, net9.0 and net10.0 assets. main has been red at pack since
Oct 14 and nothing has been released since v2.0.9.

Generated with -p:ApiCompatGenerateSuppressionFile=true. Every
suppression targets a type in System.Diagnostics.CodeAnalysis or
System.Runtime.CompilerServices that Polyfill embeds; none covers
TUI's own API.

Fixes #259

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017vfJW2kkxDaFKYetxhPcC9
@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

Development

Successfully merging this pull request may close these issues.

No release since v2.0.9 (Oct 9): every main CI run since Oct 14 fails at pack on package validation (CP0014/CP0015 on Polyfill shim types)

2 participants