diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index c19d5eaf36f..8b9c49f5e73 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -19,9 +19,9 @@ https://github.com/dotnet/runtime eaa9717d90115cea43b4cdd7a2a49e6d3c3d780e - + https://github.com/dotnet/command-line-api - 02fe27cd6a9b001c8feb7938e6ef4b3799745759 + f6ff2f1a94a58617e744f8fe0d469a2a420a6259 diff --git a/eng/Versions.props b/eng/Versions.props index 36e5e42abe6..69831cf7790 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -16,7 +16,7 @@ - 2.0.0-beta4.23307.1 + 2.0.0-beta4.23326.1 8.0.0-preview.7.23325.2 8.0.0-preview.7.23325.2 diff --git a/tools/Microsoft.TemplateEngine.Authoring.CLI/Commands/ExecutableCommand.cs b/tools/Microsoft.TemplateEngine.Authoring.CLI/Commands/ExecutableCommand.cs index 37ea2658d33..a6aa653b08f 100644 --- a/tools/Microsoft.TemplateEngine.Authoring.CLI/Commands/ExecutableCommand.cs +++ b/tools/Microsoft.TemplateEngine.Authoring.CLI/Commands/ExecutableCommand.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.CommandLine; +using System.CommandLine.Invocation; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Console; @@ -28,13 +29,13 @@ internal ExecutableCommand(string name, string? description = null) /// protected abstract Task ExecuteAsync(TModel args, ILoggerFactory loggerFactory, CancellationToken cancellationToken); - private sealed class CommandAction : CliAction + private sealed class CommandAction : AsynchronousCliAction { private readonly ExecutableCommand _command; public CommandAction(ExecutableCommand command) => _command = command; - public override int Invoke(ParseResult parseResult) => InvokeAsync(parseResult).GetAwaiter().GetResult(); + public int Invoke(ParseResult parseResult) => InvokeAsync(parseResult).GetAwaiter().GetResult(); public override async Task InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken = default) {