[sdk 6.0.100-preview.1.21107.2-win-x64] dotnet tool fail due to argument passed to the tool.
See original GitHub issueThe cli tries to parse the ‘-v’ argument that is passed to the tool, previously the cli ignored this argument.
25>System.InvalidOperationException: Cannot parse argument 'Release' as expected type Microsoft.DotNet.Cli.VerbosityOptions.
25> at System.CommandLine.Binding.ArgumentConverter.GetValueOrDefault[T](ArgumentConversionResult result)
25> at System.CommandLine.Parsing.OptionResultExtensions.GetValueOrDefault[T](OptionResult optionResult)
25> at System.CommandLine.Parsing.ParseResult.ValueForOption[T](String alias)
25> at Microsoft.DotNet.Cli.Telemetry.TelemetryFilter.LogVerbosityForAllTopLevelCommand(ICollection`1 result, ParseResult parseResult, String topLevelCommandName)
25> at Microsoft.DotNet.Cli.Telemetry.TelemetryFilter.Filter(Object objectToFilter)
25> at Microsoft.DotNet.Cli.Utils.TelemetryEventEntry.SendFiltered(Object o)
25> at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient)
25> at Microsoft.DotNet.Cli.Program.Main(String[] args)
25>C:\dev\Opal\CKSetup\CKSetup.csproj(12,5): error MSB3073: The command "dotnet cksetup run CKSetup.xml -v Release --logFile LastRun.log" exited with code 1.
I believe this is a regression from .NET 5.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Troubleshoot .NET tool usage issues
NET tool fails to run, most likely you ran into one of the following issues: The executable file for the tool wasn't found....
Read more >Cannot install dotnet-ef tool on Windows 10
I gives me the following error: The tool package could not be restored. Tool 'dotnet-ef' failed to install. This failure may have been...
Read more >Dotnet tool install 401 Unauthorized
I'm trying to install the "dotnet-reportgenerator-globaltool" tool via .Net Core custom task. Custom Command: tool. Arguments: install ...
Read more >Trying to use .NET Core. Tool installs failing because of . ...
I have uninstalled all .NET Framework SDKs/Runtimes. I have installed the latest .NET 5.0 SDK which includes the runtimes. I made a new...
Read more >Tool not found after `dotnet tool restore` even ... - YouTrack
Tool not found after `dotnet tool restore` even though `dotnet tool list --local` shows the tool as present. This issue has only become...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@sfoslund This looks like an issue with the new command line parser
Oh I see, it’s not reproducing for me when run globally but it does locally. It does seem to be a parser issue, I’ll look into this.