Skip to content

Enable nullable annotations in NuGet.Credentials - #7604

Merged
Nigusu-Allehu merged 5 commits into
devfrom
dev-nkolev92-nullableCreds
Aug 11, 2026
Merged

Nigusu-Allehu merged 5 commits into
devfrom
dev-nkolev92-nullableCreds

Conversation

@nkolev92

@nkolev92 nkolev92 commented Jul 30, 2026 •

Copy link
Copy Markdown
Member

Bug

Fixes: NuGet/Home#15012

Description

Enables nullable reference type annotations throughout NuGet.Credentials and updates the shipped public API baselines for both target frameworks.

The annotations preserve existing runtime behavior while documenting genuinely optional credential, proxy, plugin request, and plugin response values. The change also replaces CS1591 suppressions in the touched public APIs with XML documentation.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

nkolev92 and others added 5 commits July 29, 2026 17:43
Completes NuGet.Protocol nullable enablement (phases 17, 18, 24): the last
16 `#nullable disable` files are annotated, with the public metadata cascade
propagated across dependent projects and PublicAPI.Shipped.txt for both TFMs.

MetadataResourceV3 now throws InvalidDataException on a missing/unparseable
mandatory catalog version instead of silently dropping the entry.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: adcfe3e1-067b-4ef1-89e7-cd0e377c18b2
Co-authored-by: Copilot <[email protected]>

Copilot-Session: d187b875-2b69-4ed9-9263-01295e184310
Co-authored-by: Copilot <[email protected]>

Copilot-Session: d5aa85ea-d196-4854-8fbf-76171f38097b
@nkolev92
nkolev92 marked this pull request as ready for review July 31, 2026 16:11
@nkolev92
nkolev92 requested a review from a team as a code owner July 31, 2026 16:11
@Nigusu-Allehu
Nigusu-Allehu merged commit 0f781ba into dev Aug 11, 2026
17 of 18 checks passed
@Nigusu-Allehu
Nigusu-Allehu deleted the dev-nkolev92-nullableCreds branch August 11, 2026 18:04
@nkolev92

Copy link
Copy Markdown
Member Author

Thanks for merging this @Nigusu-Allehu !

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.

Add nullable annotations to NuGet.Credentials

3 participants