Repository navigation
Add nullable annotations to NuGet.DependencyResolver.Core - #7642
Merged
Merged
Conversation
nkolev92
reviewed
Aug 24, 2026
nkolev92
left a comment
Member
There was a problem hiding this comment.
Looking good. I think it's largely 1 pattern that should be fixed.
i thought I had made the skill favor required, but it seems like I only did it for private/internal types and these are public.
https://github.com/NuGet/NuGet.Client/blob/dev/.agents/skills/nullable-enablement/SKILL.md#annotation-philosophy-prefer-non-null
Honestly, public are fine to, but at the discretion of us, rather than automatically for all.
nkolev92
reviewed
Aug 26, 2026
zivkan
force-pushed
the
dev-zivkan-nullable-DependencyResolver
branch
from
August 29, 2026 01:48
8694b0b to
dab71dc
Compare
nkolev92
reviewed
Aug 31, 2026
nkolev92
left a comment
Member
There was a problem hiding this comment.
Minor comments.
This one has honestly been a pretty tricky annotation since we do so many operations where we have not enforced null.
donnie-msft
approved these changes
Sep 1, 2026
nkolev92
approved these changes
Sep 1, 2026
This was referenced Sep 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Fixes: NuGet/Home#15060
Description
Removes
#nullable disablefrom all files in NuGet.DependencyResolver.Core, and fixes build errors. Minor changes to some public APIs were made to make to make nullable checks more correct. In particular, making some propertiesrequired, so they don't need to be nullable.PR Checklist
Added testsN/ALink to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.N/A