Skip to content

No release since v1.3.63-pre.3 (Oct 9): every main CI run since Oct 13 fails at pack on package validation (CP0014/CP0015), so #194 (custom Credential subclasses) never reached NuGet #200

Closed

Description

@matt-edmondson

What's wrong

Every CI run on main since 2026-10-13 fails in ci / .NET / Analyze & Release, with Release workflow failed: Pack failed for 1 project(s): CredentialCache (exit code 1). Tests pass on Windows, macOS and Ubuntu. Only dotnet pack fails, at package validation (Microsoft.NET.ApiCompat.ValidatePackage.targets(39,5)):

error : API compatibility errors between 'lib/net9.0/ktsu.CredentialCache.dll' (left) and 'lib/net10.0/ktsu.CredentialCache.dll' (right):
error CP0015: Cannot change arguments of attribute 'System.Runtime.CompilerServices.NullableContextAttribute' on 'System.Diagnostics.CodeAnalysis.ExperimentalAttribute'.
error CP0014: Cannot remove attribute 'System.Runtime.CompilerServices.NullableContextAttribute(2)' from 'System.Runtime.CompilerServices.DefaultInterpolatedStringHandler'.
error CP0014: Cannot remove attribute 'System.Runtime.CompilerServices.NullableAttribute(2)' from 'System.Diagnostics.CodeAnalysis.ExperimentalAttribute.UrlFormat'.
...

All of the diagnostics are on Polyfill's embedded shim types (ExperimentalAttribute, DefaultInterpolatedStringHandler), not on this library's API. Scheduled runs passed through 2026-10-12 and have failed every day from 2026-10-13, the day Polyfill went from 11.4.3 to 11.4.5 (375f037). Seen in run 38482441346 (Oct 13) and run 41931065167 (Nov 4). I matched the cause by timing and didn't bisect, but it is the same Polyfill 11.4.5 shim drift that the sibling repositories have already fixed:

Unlike those repositories, CredentialCache has no CredentialCache/CompatibilitySuppressions.xml at all.

Why it matters

Suggested fix

Do what the sibling repositories above did. Build with the SDK CI uses (Windows runner, SDK 10.0.403), run dotnet pack CredentialCache/CredentialCache.csproj -c Release -p:ApiCompatGenerateSuppressionFile=true, and commit the generated CredentialCache/CompatibilitySuppressions.xml. It should cover the net9.0 → net10.0 pair.

Note: once pack passes, publishing will still hit the org-wide expired NuGet.org API key (ktsu-dev/.github#48), which is failing the other repositories' releases right now. Both have to be fixed before a release reaches nuget.org.

Acceptance criteria

  • dotnet pack -c Release of CredentialCache succeeds with package validation on and suppression generation off.
  • The next CI run on main gets past the pack step of Analyze & Release.

Activity

  1. added
    bug
    on Nov 5, 2026
  2. matt-edmondson commented on Nov 5, 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