dotnet / dotnet/project-system

PackageReference items that come from package's targets files should not be included in the set we push to NuGet

Open
#3,734 1 comment 0 reactions 0 assignees View on GitHub
Feature-NuGet Triage-Investigate
Dominant language
C#
Stars
1k
Forks
415
PR merge metrics
No merged PRs in 30d

Description

Command-line restore will not import package reference's target files during restore phase (via ExcludeRestorePackageImports), but due to VS's single evaluation model we'll include any PackageReference items that are present when we push packages to NuGet. We should deliberately filter package references out that come from package targets to have the same behavior as command-line restore.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.