Describe the bug
dotnet run -- -bl should run an app and pass -bl to it as command-line argument. Instead dotnet run itself uses the -bl argument.
Steps to reproduce
Create a simple command-line app that can echo its arguments, for example:
Console.WriteLine($"args({args.Length}):{string.Join(";", args)}");
dotnet run -- --no-build -> args(1):--no-build OK
dotnet run -- -bl -> args(0): WRONG
Expected behavior
-bl should be passed to the app since it's after --.
Actual behavior
-bl is consumed by dotnet run CLI.
Is this a regression?
No.
Are there any workarounds?
No.
dotnet --info output
IDE version
No response
Other details
No response
Describe the bug
dotnet run -- -blshould run an app and pass-blto it as command-line argument. Insteaddotnet runitself uses the-blargument.Steps to reproduce
Create a simple command-line app that can echo its arguments, for example:
dotnet run -- --no-build->args(1):--no-buildOKdotnet run -- -bl->args(0):WRONGExpected behavior
-blshould be passed to the app since it's after--.Actual behavior
-blis consumed bydotnet runCLI.Is this a regression?
No.
Are there any workarounds?
No.
dotnet --info output
.NET 10.0.300IDE version
No response
Other details
No response