dotnet list package
to optionally ignore non-PackageReference projects in a .sln
#13359
Labels
Functionality:ListPackage
dotnet.exe list package
Priority:3
Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.
Product:dotnet.exe
Type:DCR
Design Change Request
NuGet Product(s) Affected
dotnet.exe
Current Behavior
When the .sln file contains both PackageReference and non-PackageReference projects (e.g. certain installer projects), the
dotnet list package
command fails and throws an error.Desired Behavior
When an option is set to true (e.g.
ignoreNonPackageReferenceProjects
) then thedotnet list package
command skips over the projects that are not using the PackageReference structure and successfully reports the nuget packages for the projects that do use the PackageReference structure.Additional Context
The
dotnet list package
command is used to generate a software bill of materials. However it currently does not work if the solution contains e.g. a WiX 3.11 project (which is not using the PackageReference structure).The text was updated successfully, but these errors were encountered: