Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[sdk 6.0.100-preview.1.21107.2-win-x64] dotnet tool fail due to argument passed to the tool.

See original GitHub issue

The 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:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

dsplaistedcommented, Feb 17, 2021

@sfoslund This looks like an issue with the new command line parser

sfoslundcommented, Feb 23, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found