list package doesn't with a solution argument in 9.0.201 #14177
Labels
Functionality:ListPackage
dotnet.exe list package
Priority:1
High priority issues that must be resolved in the current sprint.
Product:dotnet.exe
RegressionFromPreviousRTM
A regression from the last RTM. Example: worked in 6.2, doesn't work in 6.3
Type:Bug
Milestone
Uh oh!
There was an error while loading. Please reload this page.
NuGet Product Used
dotnet.exe
Product Version
9.0.201
Worked before?
9.0.104
Impact
It's more difficult to complete my work
Repro Steps & Context
When using
dotnet list <SOLUTION> package
command, the result doesn't contain any projects unless the CWD is the directory containing the solution.Let me describe this with the following folder structure:
Using
dotnet list package --format json
fromC:\root\MyProject
yields the expected result:But from
C:\root
, passing in the path to the solution files in various ways (with or without the solution file; relative and absolute paths) makes it return results whereprojects
is an empty array:If I change directory to
C:\root\MyProject
it works as expected:It also works if I target
MyProject.csproj
instead of the solution file:And it also works if I change to version 9.0.104:
Verbose logging (
dotnet list package --verbosity d
) doesn't yield any logs in the failing scenarios, so it seems like the command simply fails to detect the projects it needs to analyze.Workaround: Instead of supplying the solution file path you can change to the directory where the solution file is located and invoke the command without a solution path.
Verbose Logs
The text was updated successfully, but these errors were encountered: