"dotnet list package --include-transitive" should ignore docker project files #12914
Labels
Functionality:ListPackage
dotnet.exe list package
Product:dotnet.exe
Resolution:Duplicate
This issue appears to be a Duplicate of another issue
Type:DCR
Design Change Request
NuGet Product(s) Affected
dotnet.exe
Current Behavior
I'm trying to follow the steps outlined in the blog post for package source mapping and it suggests that I run
dotnet list package --include-transitive
to "view all top-level and transitive packages in your solution.Mine is a solution in which every project will be built as a separate Docker container. When I ran this command, I got the message:
That's all fine and good - where's the list of packages?
Desired Behavior
If it encounters a file type it's not compatible with, skip it and keep searching. Instead I get a warning that it's incompatible (and can't do anything about it as I otherwise need the file) and also get no outputs providing me with the desired list.
Further, there should be some way to write this list directly from the command into the nuget.config file in the root of the directory I'm running the command from.
Additional Context
As it stands, I've got too many projects in this solution to try running that command one at a time, so I'm just going to have to pass on fully implementing the package source mapping. Please address the above issue so I might take full advantage of this handy functionality.
Thank you!
The text was updated successfully, but these errors were encountered: