Skip to content

unify CustomParser and DefaultValueFactory via new SetValueFactory API

f29df73
Select commit
Loading
Failed to load commit list.
Draft

[PROPOSED] Unify CustomParser and DefaultValueFactory #2791

unify CustomParser and DefaultValueFactory via new SetValueFactory API
f29df73
Select commit
Loading
Failed to load commit list.
Azure Pipelines / command-line-api (Build and Test Ubuntu Debug) failed Apr 2, 2026 in 1m 11s

Build and Test Ubuntu Debug failed

Annotations

Check failure on line 97 in src/System.CommandLine.Suggest/SuggestionDispatcher.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / command-line-api (Build and Test Ubuntu Debug)

src/System.CommandLine.Suggest/SuggestionDispatcher.cs#L97

src/System.CommandLine.Suggest/SuggestionDispatcher.cs(97,13): error CS0618: (NETCORE_ENGINEERING_TELEMETRY=Build) 'Option<int>.DefaultValueFactory' is obsolete: 'Use SetValueFactory(..., ValueFactoryInvocation.WhenTokensNotMatched) instead.'

Check failure on line 26 in src/System.CommandLine.Tests/ArgumentTests.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / command-line-api (Build and Test Ubuntu Debug)

src/System.CommandLine.Tests/ArgumentTests.cs#L26

src/System.CommandLine.Tests/ArgumentTests.cs(26,9): error CS0618: (NETCORE_ENGINEERING_TELEMETRY=Build) 'Argument<string[]>.DefaultValueFactory' is obsolete: 'Use SetValueFactory(..., ValueFactoryInvocation.WhenTokensNotMatched) instead.'

Check failure on line 74 in src/System.CommandLine.Tests/GetValueByNameParserTests.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / command-line-api (Build and Test Ubuntu Debug)

src/System.CommandLine.Tests/GetValueByNameParserTests.cs#L74

src/System.CommandLine.Tests/GetValueByNameParserTests.cs(74,17): error CS0618: (NETCORE_ENGINEERING_TELEMETRY=Build) 'Option<int>.DefaultValueFactory' is obsolete: 'Use SetValueFactory(..., ValueFactoryInvocation.WhenTokensNotMatched) instead.'

Check failure on line 50 in src/System.CommandLine.Tests/ArgumentTests.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / command-line-api (Build and Test Ubuntu Debug)

src/System.CommandLine.Tests/ArgumentTests.cs#L50

src/System.CommandLine.Tests/ArgumentTests.cs(50,13): error CS0618: (NETCORE_ENGINEERING_TELEMETRY=Build) 'Argument<string>.DefaultValueFactory' is obsolete: 'Use SetValueFactory(..., ValueFactoryInvocation.WhenTokensNotMatched) instead.'

Check failure on line 22 in src/System.CommandLine.Tests/Help/HelpBuilderTests.Approval.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / command-line-api (Build and Test Ubuntu Debug)

src/System.CommandLine.Tests/Help/HelpBuilderTests.Approval.cs#L22

src/System.CommandLine.Tests/Help/HelpBuilderTests.Approval.cs(22,21): error CS0618: (NETCORE_ENGINEERING_TELEMETRY=Build) 'Argument<string>.DefaultValueFactory' is obsolete: 'Use SetValueFactory(..., ValueFactoryInvocation.WhenTokensNotMatched) instead.'