Skip to content

Conversation

@nkolev92
Copy link
Member

@nkolev92 nkolev92 commented Jan 21, 2026

Bug

Progress: NuGet/Home#5154

Description

These changes are part of #6972, which has lots of other changes, so I'm trying to minimize risk by splitting refactoring and implementation.

In PackageSpecReferenceDependencyProvider

  • Clean-up getting dependencies from external ref. This used to be a project.json thing where xproj deps came through msbuild, but we no longer have that.
    This allows us to remove the GetSpecDependencies calls from this codepath which becomes relevant in the next PR.
  • We also add the DotnetCLITool into the way we fetch dependencies for PR. DotnetCLITool restore uses a created package spec, so as long as we create it and restore correctly, it's all fine. This doesn't touch that.

In GetReferenceNearestTargetFrameworkTask

Once this is approved, I'll mark #6972 as ready for review.

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 nkolev92 requested a review from a team as a code owner January 21, 2026 01:58
@nkolev92 nkolev92 closed this Jan 21, 2026
@nkolev92
Copy link
Member Author

There's a secondary issue here.

@nkolev92 nkolev92 deleted the dev-nkolev92-cleanupPackageSpecRefProvider branch January 21, 2026 02:27
@nkolev92 nkolev92 reopened this Jan 21, 2026
@nkolev92 nkolev92 marked this pull request as draft January 21, 2026 16:35
@nkolev92 nkolev92 closed this Jan 21, 2026
@nkolev92 nkolev92 reopened this Jan 22, 2026
@nkolev92 nkolev92 marked this pull request as ready for review January 22, 2026 02:00
@nkolev92 nkolev92 changed the title Remove dead code from PackageSpecReferenceDependencyProvider. Remove dead code from PackageSpecReferenceDependencyProvider, and use PackageSpec's TargetFrameworkInformation in GetReferenceNearestTargetFrameworkTask Jan 22, 2026
@nkolev92 nkolev92 enabled auto-merge (squash) January 22, 2026 17:17
@nkolev92 nkolev92 merged commit 5fb8b28 into dev Jan 23, 2026
17 of 18 checks passed
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.

4 participants