Skip to content

Commit 42fcb3d

Browse files
committed
Add default for dotnet reference list
1 parent 67f43d9 commit 42fcb3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ public ReferenceListCommand(
2020

2121
_fileOrDirectory = parseResult.HasOption(ReferenceCommandParser.ProjectOption) ?
2222
parseResult.GetValue(ReferenceCommandParser.ProjectOption) :
23-
parseResult.GetValue(ListCommandParser.SlnOrProjectArgument);
23+
parseResult.GetValue(ListCommandParser.SlnOrProjectArgument) ??
24+
Directory.GetCurrentDirectory();
2425
}
2526

2627
public override int Execute()

0 commit comments

Comments
 (0)