dotnet nuget why should check RID specific packages #13718
Labels
Functionality:Why
dotnet nuget why
Priority:1
High priority issues that must be resolved in the current sprint.
Type:DCR
Design Change Request
NuGet Product(s) Affected
dotnet.exe
Current Behavior
Add any package which eventually adds
System.Runtime
as a depenedncy. For example,System.Collections.Specialized
. Restore will warn you aboutSystem.Private.Uri
having a known vulnerability (when NuGetAuditMode is set toall
, which is default from .NET 9). However,dotnet nuget why my.csproj System.Private.Uri
will tell you that the package is not used by the projectDesired Behavior
dotnet nuget why
should tell me why this package is being restored.Additional Context
Looking at the assets file, the package is being included due to RID-specific (Runtime IDentifier) dependencies. Therefore,
dotnet nuget why
appears to be looking only at the "RIDless" package graph in the assets file.The text was updated successfully, but these errors were encountered: