Skip to content

dotnet reference list looks for empty project name when option not specified #48555

Open
@nkolev92

Description

@nkolev92

dotnet list reference previously had project as an argument with a default.
dotnet reference list no longer has project as an argument, but as an option.

However, if I don't specify the project option, the error message makes it seem that it attempted to lookup an empty string for project. Instead, it should have a default of the project in the current directory, as the old command did, or it should tell me I must provide an option for project.

Old behavior

dotnet list reference
There are no Project to Project references in project C:\users\eagoodso\source\repos\ConsoleApp8\ClassLibrary1.

New unexpected behavior

dotnet reference list
Could not find project or directory ``.

Image

Moved from https://github.com/NuGet/client.engineering/issues/3227, filled originally by @donnie-msft

cc @Nigusu-Allehu

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions