command-line-api icon indicating copy to clipboard operation
command-line-api copied to clipboard

incorrect argument in specified in exception

Open kellyelton opened this issue 1 year ago • 2 comments

https://github.com/dotnet/command-line-api/blob/3e0db9e5830f2722645b9a576f80e3650b50f23a/src/System.CommandLine.Hosting/HostingExtensions.cs#L98

Should be commandType not handlerType

kellyelton avatar Aug 21 '23 17:08 kellyelton

I would have opened a pull request to fix this, but I'm not sure what branch to use.

kellyelton avatar Aug 21 '23 17:08 kellyelton

The automated builds in the https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-libraries/nuget/v3/index.json feed linked from README.md are from the main branch, but that throw statement was already removed in https://github.com/dotnet/command-line-api/pull/2100.

At this time, I don't believe the developers will publish a bugfix version API-compatible with 2.0.0-beta4.22272.1.

KalleOlaviNiemitalo avatar Aug 21 '23 17:08 KalleOlaviNiemitalo