Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet list package to optionally ignore non-PackageReference projects in a .sln #13359

Open
WKBD437 opened this issue Mar 29, 2024 · 0 comments
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

Comments

@WKBD437
Copy link

WKBD437 commented Mar 29, 2024

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 the dotnet 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).

@WKBD437 WKBD437 added Triage:Untriaged Type:DCR Design Change Request labels Mar 29, 2024
@jeffkl jeffkl added the Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. label Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants