Open yaakov-h opened 2 years ago
This should get solved as part of https://github.com/dotnet/sdk/issues/24068, moving towards an explicit argument array should give the parser enough information to do the expected correct thing.
Does that mean that this will only get solved for .NET 7, and the LTS release will remain broken?
Describe the bug
When running the .NET SDK in (at least some) languages that have localized language packs,
dotnet tool run
fails to correctly delineate between its own arguments and arguments intended for the tool that the user wishes to run.This does not occur in
English (United States)
orעברית
, but does occur inDeutsch (Deutschland)
andEspañol (España)
, under Windows 10 and Windows 11.To Reproduce
To setup:
To repro:
Expected Output:
Actual Output:
German:
Spanish:
Additional Notes:
I have managed to reproduce this with both
excubo.webcompiler
(as shown above) andprotobuf-net.protogen
.As a workaround,
--
can be inserted between the tool name and the arguments intended for the tool, e.g.dotnet tool run webcompiler -- -r a
This issue occurs on .NET SDK 6.0.100 and 7.0.100-preview.1.22110.4 at least. I expect the entire 6.x line is affected.
Further technical details
Reproduced on the Windows 11 Pro Azure VM template, running v21H2 build 22000.493.