Skip to content

Fix System.CommandLine 2.0.0 Uri parsing in GrpcClient benchmark app#2695

Merged
JamesNK merged 1 commit intogrpc:masterfrom
ilonatommy:fix/system-commandline-uri-parsing
Mar 9, 2026
Merged

Fix System.CommandLine 2.0.0 Uri parsing in GrpcClient benchmark app#2695
JamesNK merged 1 commit intogrpc:masterfrom
ilonatommy:fix/system-commandline-uri-parsing

Conversation

@ilonatommy
Copy link
Contributor

@ilonatommy ilonatommy commented Mar 6, 2026

System.CommandLine 2.0.0 has no built-in converter for System.Uri, causing all crashes with InvalidOperationException when parsing the --url option.

Changes

Fixes #2694

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Mar 6, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: ilonatommy / name: Ilona Tomkowicz (1bc808c)

@jeffhandley
Copy link

@JamesNK Can you help us get this change through the CLA process? It's currently blocking our benchmarks runs.

@ilonatommy ilonatommy closed this Mar 9, 2026
@ilonatommy ilonatommy reopened this Mar 9, 2026
System.CommandLine 2.0.0 has no built-in converter for System.Uri, causing
all 48 Grpc benchmark tasks to crash with InvalidOperationException when
parsing the --url option.

Add a CustomParser to the Option<Uri> definition as the documented
workaround (see dotnet/command-line-api#2574).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ilonatommy ilonatommy force-pushed the fix/system-commandline-uri-parsing branch from 2846252 to 1bc808c Compare March 9, 2026 08:15
@JamesNK JamesNK merged commit e65ae6b into grpc:master Mar 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GrpcClient benchmark app crashes with System.CommandLine 2.0.0: "Cannot parse --url as System.Uri"

3 participants