Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch to fix command-line-api to work with latest SDK #16136

Merged
merged 1 commit into from
Apr 17, 2023

Conversation

mthalman
Copy link
Member

The stage 2 bootstrapping build of the VMR is failing with the following error:

##[error]/vmr/src/command-line-api/artifacts/source-build/self/src/src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs(110,30): error CS0121: (NETCORE_ENGINEERING_TELEMETRY=Build) The call is ambiguous between the following methods or properties: 'Task.Delay(TimeSpan, CancellationToken)' and 'Task.Delay(TimeSpan, TimeProvider)'

This is caused by the current code of command-line-api in the VMR not being compatible with the newly added code changes in dotnet/runtime#83604.

I've added a patch which fixes this by explicitly casting default to the desired parameter type. This does not need to be backported to command-line-api because this affected code no longer exists in the latest version of that repo.

@mthalman mthalman requested a review from a team as a code owner April 17, 2023 18:54
Copy link
Member

@MichaelSimons MichaelSimons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mthalman mthalman enabled auto-merge (squash) April 17, 2023 19:35
@mthalman mthalman merged commit 5e9593f into dotnet:main Apr 17, 2023
@mthalman mthalman deleted the patch-command-line branch April 17, 2023 19:52
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.

2 participants