Skip to content

No release since 1.18.2: pack fails package validation (117 × CP0016) after the Polyfill 11.4.5 bump, so LoadOrCreateIn and the #348/#350 fixes aren't on NuGet #358

Closed

Description

@matt-edmondson

What's wrong

The last CI run on main (run 38676871802, merge of #350, 2026-10-15) fails in Analyze & Release at the pack step:

Pack failed for AppDataStorage with exit code 1
Release workflow failed: Pack failed for 1 project(s): AppDataStorage (exit code 1)

Package validation reports 117 CP0016 errors, all about polyfilled BCL types compiled into the assembly. The nullable attributes on these types no longer match between target frameworks. For example:

error : CP0016 (Target: 'M:System.Index.ToString:[T:System.Runtime.CompilerServices.NullableContextAttribute]', Left: 'lib/net7.0/ktsu.AppDataStorage.dll', Right: 'lib/net8.0/ktsu.AppDataStorage.dll')
error : CP0016 (Target: 'M:System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.ToStringAndClear:[T:...NullableContextAttribute]', Left: 'lib/net7.0/...', Right: 'lib/net8.0/...')

102 of the errors compare net7.0 with net8.0, and 13 compare net9.0 with net10.0.

Polyfill went from 11.4.3 to 11.4.5 in c36274c on 2026-10-13. The run on 2026-10-09 passed. AppDataStorage/CompatibilitySuppressions.xml still holds the suppressions generated against the old Polyfill output, so the new differences are not covered.

Why it matters

VERSION.md says 1.19.0, but the newest stable tag is v1.18.2. These merged changes have never reached NuGet:

Consumers such as SingleAppInstance keep shipping against 1.18.2. Every further [patch] merged to main will fail the same way until this is fixed.

Suggested fix

Regenerate the suppression file against the current Polyfill and commit it:

dotnet pack AppDataStorage -c Release -p:ApiCompatGenerateSuppressionFile=true

Then confirm that dotnet pack -c Release passes with no new CP* errors.

Acceptance criteria

Activity

  1. added
    bug
    on Oct 31, 2026
  2. matt-edmondson commented on Oct 31, 2026

    @matt-edmondson
    ContributorAuthor

    Triage


    Generated by Claude Code

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

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions