Skip to content

Enable nullable annotations for ProjectModel cache and framework types - #7781

Merged
nkolev92 merged 5 commits into
devfrom
dev-nkolev92-nullableProjectModelPhase2
Oct 28, 2026
Merged

nkolev92 merged 5 commits into
devfrom
dev-nkolev92-nullableProjectModelPhase2

Conversation

@nkolev92

@nkolev92 nkolev92 commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Bug

Progress: NuGet/Home#14779

Description

Enables nullable reference type annotations for NuGet.ProjectModel cache, target-framework metadata, and external-project reference contracts, continuing the incremental migration in #7172 and #7718.

Optional cache and project metadata remain nullable, while required inputs fail fast and framework consumers handle missing framework names explicitly. CacheFile.IsValid now communicates its non-null hash guarantee, null cache JSON is logged and treated as invalid rather than returned as null, and the legacy external-project-reference constructor is retained but marked obsolete for future removal.

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 October 27, 2026 15:32
Co-authored-by: Copilot <[email protected]>

Copilot-Session: ee5c87ac-7f94-4d93-9c2b-9077fa7c3288
Co-authored-by: Copilot <[email protected]>

Copilot-Session: ee5c87ac-7f94-4d93-9c2b-9077fa7c3288
@nkolev92
nkolev92 force-pushed the dev-nkolev92-nullableProjectModelPhase2 branch from a9aa44d to 1ac858e Compare October 27, 2026 22:32
@nkolev92
nkolev92 marked this pull request as ready for review October 27, 2026 22:33
@nkolev92
nkolev92 requested a review from a team as a code owner October 27, 2026 22:33
@nkolev92
nkolev92 merged commit c6df458 into dev Oct 28, 2026
18 checks passed
@nkolev92
nkolev92 deleted the dev-nkolev92-nullableProjectModelPhase2 branch October 28, 2026 22:46
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.

2 participants