From 0c49f80a6665dd92304e83a8920046336a9b5bd9 Mon Sep 17 00:00:00 2001 From: "dotnet-maestro[bot]" Date: Thu, 23 Jan 2025 05:01:31 +0000 Subject: [PATCH 1/4] Update dependencies from https://github.com/dotnet/command-line-api build 20250122.1 Microsoft.SourceBuild.Intermediate.command-line-api , System.CommandLine , System.CommandLine.Rendering From Version 0.1.607102 -> To Version 0.1.607201 --- eng/Version.Details.xml | 12 ++++++------ eng/Versions.props | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 37c1b11d5474..916a1e65287a 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -433,13 +433,13 @@ 45caa455b34553e7ef3ff7cb1def454eef78037c - + https://github.com/dotnet/command-line-api - 3bbb940ceeb3254790899d751a8d418348563d40 + 060374e56c1b2e741b6525ca8417006efb54fbd7 - + https://github.com/dotnet/command-line-api - 3bbb940ceeb3254790899d751a8d418348563d40 + 060374e56c1b2e741b6525ca8417006efb54fbd7 - + https://github.com/dotnet/command-line-api - 3bbb940ceeb3254790899d751a8d418348563d40 + 060374e56c1b2e741b6525ca8417006efb54fbd7 diff --git a/eng/Versions.props b/eng/Versions.props index 40bfcbdad4ce..32a0a9eeb35d 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -57,8 +57,8 @@ 4.8.6 1.2.0-beta.435 4.0.5 - 2.0.0-beta4.25071.2 - 0.4.0-alpha.25071.2 + 2.0.0-beta4.25072.1 + 0.4.0-alpha.25072.1 2.0.0-preview.1.25063.2 2.2.0-beta.24622.1 1.1.2-beta1.22216.1 From 90f51081f78a218ba1bd443dec66fc994e3099e4 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 22 Jan 2025 18:03:51 +0100 Subject: [PATCH 2/4] adjust to System.CommandLine renaming --- src/BlazorWasmSdk/Tool/Program.cs | 10 +- .../Commands/FormatAnalyzersCommand.cs | 6 +- .../Commands/FormatCommandCommon.cs | 30 ++-- .../Commands/FormatStyleCommand.cs | 6 +- .../Commands/FormatWhitespaceCommand.cs | 6 +- .../Commands/RootFormatCommand.cs | 6 +- .../dotnet-watch/CommandLineOptions.cs | 32 ++-- .../ChoiceTemplateParameter.cs | 4 +- .../CliTemplateParameter.cs | 32 ++-- .../Commands/BaseCommand.cs | 19 ++- .../Commands/CommandLineUtils.cs | 16 +- .../Commands/Example.cs | 34 ++-- .../Commands/Extensions.cs | 10 +- .../Commands/FilterOptionDefinition.cs | 8 +- .../Commands/GlobalArgs.cs | 2 +- .../Commands/ICommandArgs.cs | 4 +- .../Commands/ICommandDocument.cs | 2 +- .../Commands/ICustomHelp.cs | 2 +- .../Commands/IFilterableCommand.cs | 2 +- .../Commands/ITabularOutputCommand.cs | 4 +- .../Commands/NewCommand.Legacy.cs | 32 ++-- .../Commands/NewCommand.cs | 18 +- .../Commands/NewCommandArgs.cs | 2 +- .../Commands/ParserFactory.cs | 4 +- .../Commands/SharedOptions.cs | 14 +- .../Commands/SharedOptionsFactory.cs | 34 ++-- .../create/InstantiateCommand.Help.cs | 27 +-- .../InstantiateCommand.NoMatchHandling.cs | 12 +- .../InstantiateCommand.TabCompletion.cs | 2 +- .../Commands/create/InstantiateCommand.cs | 8 +- .../Commands/create/TemplateCommand.cs | 19 ++- .../Commands/create/TemplateCommandArgs.cs | 8 +- .../Commands/create/TemplateOption.cs | 4 +- .../Commands/details/DetailsCommand.cs | 8 +- .../Commands/install/BaseInstallCommand.cs | 8 +- .../Commands/install/LegacyInstallCommand.cs | 6 +- .../Commands/list/BaseListCommand.cs | 10 +- .../Commands/list/LegacyListCommand.cs | 8 +- .../Commands/search/BaseSearchCommand.cs | 8 +- .../Commands/search/LegacySearchCommand.cs | 8 +- .../uninstall/BaseUninstallCommand.cs | 2 +- .../Commands/update/BaseUpdateCommand.cs | 4 +- .../update/LegacyUpdateApplyCommand.cs | 6 +- .../update/LegacyUpdateCheckCommand.cs | 6 +- .../Commands/update/UpdateCommand.cs | 2 +- .../NewCommandFactory.cs | 2 +- .../SymbolExtensions.cs | 4 +- src/Cli/dotnet-new3/CompleteCommand.cs | 8 +- src/Cli/dotnet-new3/New3CommandFactory.cs | 8 +- src/Cli/dotnet-new3/ParserFactory.cs | 4 +- src/Cli/dotnet-new3/Program.cs | 2 +- src/Cli/dotnet/CommonOptions.cs | 52 +++--- src/Cli/dotnet/CommonOptionsFactory.cs | 2 +- src/Cli/dotnet/DocumentedCommand.cs | 2 +- src/Cli/dotnet/DotNetCommandFactory.cs | 2 +- .../NugetSearch/NugetSearchApiParameter.cs | 2 +- src/Cli/dotnet/OptionForwardingExtensions.cs | 20 +-- src/Cli/dotnet/ParseResultExtensions.cs | 14 +- src/Cli/dotnet/Parser.cs | 33 ++-- src/Cli/dotnet/ParserExtensions.cs | 2 +- .../Telemetry/AllowListToSendFirstArgument.cs | 2 +- ...owListToSendVerbSecondVerbFirstArgument.cs | 4 +- src/Cli/dotnet/Telemetry/TelemetryFilter.cs | 10 +- .../TopLevelCommandNameAndOptionToLog.cs | 4 +- .../commands/InstallingWorkloadCommand.cs | 21 +-- .../commands/dotnet-add/AddCommandParser.cs | 8 +- .../dotnet-add-package/AddPackageParser.cs | 24 +-- .../AddProjectToProjectReferenceParser.cs | 14 +- .../dotnet-build/BuildCommandParser.cs | 28 +-- .../BuildServerCommandParser.cs | 6 +- .../BuildServerShutdownCommandParser.cs | 14 +- .../dotnet-clean/CleanCommandParser.cs | 16 +- .../dotnet-complete/CompleteCommandParser.cs | 12 +- .../dotnet-complete/ParseCommandParser.cs | 8 +- .../dotnet-format/FormatCommandParser.cs | 8 +- .../commands/dotnet-fsi/FsiCommandParser.cs | 8 +- .../commands/dotnet-help/HelpCommandParser.cs | 8 +- ...ternalReportinstallsuccessCommandParser.cs | 10 +- .../commands/dotnet-list/ListCommandParser.cs | 12 +- .../ListPackageReferencesCommandParser.cs | 36 ++-- ...ProjectToProjectReferencesCommandParser.cs | 10 +- .../dotnet-msbuild/MSBuildCommandParser.cs | 8 +- .../commands/dotnet-new/NewCommandParser.cs | 15 +- .../dotnet-nuget/NuGetCommandParser.cs | 160 +++++++++--------- .../commands/dotnet-pack/PackCommandParser.cs | 24 +-- .../dotnet-package/PackageCommandParser.cs | 4 +- .../search/PackageSearchCommandParser.cs | 28 +-- .../dotnet-publish/PublishCommandParser.cs | 28 +-- .../dotnet-remove/RemoveCommandParser.cs | 8 +- .../RemovePackageParser.cs | 12 +- .../RemoveProjectToProjectReferenceParser.cs | 12 +- .../dotnet-restore/RestoreCommandParser.cs | 20 +-- .../dotnet/commands/dotnet-run/RunCommand.cs | 4 +- .../commands/dotnet-run/RunCommandParser.cs | 32 ++-- .../commands/dotnet-sdk/SdkCommandParser.cs | 6 +- .../dotnet-sdk/check/SdkCheckCommandParser.cs | 8 +- .../commands/dotnet-sln/SlnCommandParser.cs | 9 +- .../commands/dotnet-sln/add/SlnAddParser.cs | 14 +- .../commands/dotnet-sln/list/SlnListParser.cs | 10 +- .../migrate/SlnMigrateCommandParser.cs | 8 +- .../dotnet-sln/remove/SlnRemoveParser.cs | 10 +- .../dotnet-store/StoreCommandParser.cs | 20 +-- .../dotnet/commands/dotnet-test/Program.cs | 2 +- .../commands/dotnet-test/TestCommandParser.cs | 68 ++++---- .../dotnet-test/TestingPlatformCommand.cs | 2 +- .../dotnet-test/TestingPlatformOptions.cs | 24 +-- .../commands/dotnet-tool/ToolCommandParser.cs | 6 +- .../ToolCommandRestorePassThroughOptions.cs | 10 +- .../dotnet-tool/common/ToolAppliedOption.cs | 12 +- .../install/ToolInstallCommandParser.cs | 42 ++--- .../ToolInstallGlobalOrToolPathCommand.cs | 2 +- .../dotnet-tool/list/ToolListCommandParser.cs | 19 ++- .../restore/ToolRestoreCommandParser.cs | 16 +- .../dotnet-tool/run/ToolRunCommandParser.cs | 14 +- .../search/ToolSearchCommandParser.cs | 18 +- .../uninstall/ToolUninstallCommandParser.cs | 18 +- .../update/ToolUpdateCommandParser.cs | 14 +- .../dotnet-vstest/VSTestCommandParser.cs | 6 +- .../dotnet-workload/WorkloadCommandBase.cs | 2 +- ...dCommandNuGetRestoreActionConfigOptions.cs | 22 +-- .../dotnet-workload/WorkloadCommandParser.cs | 11 +- .../clean/WorkloadCleanCommandParser.cs | 10 +- .../config/WorkloadConfigCommandParser.cs | 10 +- .../elevate/WorkloadElevateCommandParser.cs | 8 +- .../history/WorkloadHistoryCommandParser.cs | 8 +- .../install/WorkloadInstallCommandParser.cs | 18 +- .../list/WorkloadListCommandParser.cs | 16 +- .../repair/WorkloadRepairCommandParser.cs | 14 +- .../restore/WorkloadRestoreCommandParser.cs | 8 +- .../search/WorkloadSearchCommandParser.cs | 12 +- .../WorkloadSearchVersionsCommandParser.cs | 16 +- .../WorkloadUninstallCommandParser.cs | 12 +- .../update/WorkloadUpdateCommandParser.cs | 20 +-- .../Program.cs | 64 +++---- .../Microsoft.DotNet.GenAPI.Tool/Program.cs | 20 +-- .../containerize/ContainerizeCommand.cs | 54 +++--- src/StaticWebAssetsSdk/Tool/Program.cs | 10 +- .../ParserTests/InstallTests.cs | 2 +- .../InstantiateTests.Subcommand.cs | 14 +- .../ParserTests/InstantiateTests.cs | 28 +-- .../ParserTests/ListTests.cs | 2 +- .../ParserTests/MiscTests.cs | 10 +- .../ParserTests/SearchTests.cs | 6 +- .../TabCompletionTests.Approval.cs | 20 +-- .../ParserTests/TabCompletionTests.cs | 12 +- .../ParserTests/UninstallTests.cs | 2 +- .../ParserTests/UpdateTests.cs | 2 +- .../ListTemplateResolverTests.cs | 2 +- .../GivenDotnetBuildBuildsCsproj.cs | 4 +- .../BuildRelatedCommandParserTests.cs | 4 +- .../MSBuildArgumentCommandLineParserTests.cs | 2 +- 151 files changed, 1041 insertions(+), 1032 deletions(-) diff --git a/src/BlazorWasmSdk/Tool/Program.cs b/src/BlazorWasmSdk/Tool/Program.cs index c4f497eef7e3..7b9d504df849 100644 --- a/src/BlazorWasmSdk/Tool/Program.cs +++ b/src/BlazorWasmSdk/Tool/Program.cs @@ -12,20 +12,20 @@ internal static class Program { public static int Main(string[] args) { - CliRootCommand rootCommand = new(); - CliCommand brotli = new("brotli"); + RootCommand rootCommand = new(); + Command brotli = new("brotli"); - CliOption compressionLevelOption = new("-c") + Option compressionLevelOption = new("-c") { DefaultValueFactory = _ => CompressionLevel.SmallestSize, Description = "System.IO.Compression.CompressionLevel for the Brotli compression algorithm.", }; - CliOption> sourcesOption = new("-s") + Option> sourcesOption = new("-s") { Description = "A list of files to compress.", AllowMultipleArgumentsPerToken = false }; - CliOption> outputsOption = new("-o") + Option> outputsOption = new("-o") { Description = "The filenames to output the compressed file to.", AllowMultipleArgumentsPerToken = false diff --git a/src/BuiltInTools/dotnet-format/Commands/FormatAnalyzersCommand.cs b/src/BuiltInTools/dotnet-format/Commands/FormatAnalyzersCommand.cs index 3a601096addf..fb60d6a922e4 100644 --- a/src/BuiltInTools/dotnet-format/Commands/FormatAnalyzersCommand.cs +++ b/src/BuiltInTools/dotnet-format/Commands/FormatAnalyzersCommand.cs @@ -13,9 +13,9 @@ internal static class FormatAnalyzersCommand { private static readonly FormatAnalyzersHandler s_analyzerHandler = new(); - internal static CliCommand GetCommand() + internal static Command GetCommand() { - var command = new CliCommand("analyzers", Resources.Run_3rd_party_analyzers__and_apply_fixes) + var command = new Command("analyzers", Resources.Run_3rd_party_analyzers__and_apply_fixes) { DiagnosticsOption, ExcludeDiagnosticsOption, @@ -26,7 +26,7 @@ internal static CliCommand GetCommand() return command; } - private class FormatAnalyzersHandler : AsynchronousCliAction + private class FormatAnalyzersHandler : AsynchronousCommandLineAction { public override async Task InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken) { diff --git a/src/BuiltInTools/dotnet-format/Commands/FormatCommandCommon.cs b/src/BuiltInTools/dotnet-format/Commands/FormatCommandCommon.cs index a801de15dfbf..f889bc74d5f1 100644 --- a/src/BuiltInTools/dotnet-format/Commands/FormatCommandCommon.cs +++ b/src/BuiltInTools/dotnet-format/Commands/FormatCommandCommon.cs @@ -19,67 +19,67 @@ internal static class FormatCommandCommon private static string[] VerbosityLevels => new[] { "q", "quiet", "m", "minimal", "n", "normal", "d", "detailed", "diag", "diagnostic" }; private static string[] SeverityLevels => new[] { "info", "warn", "error" }; - public static readonly CliArgument SlnOrProjectArgument = new CliArgument(Resources.SolutionOrProjectArgumentName) + public static readonly Argument SlnOrProjectArgument = new Argument(Resources.SolutionOrProjectArgumentName) { Description = Resources.SolutionOrProjectArgumentDescription, Arity = ArgumentArity.ZeroOrOne }.DefaultToCurrentDirectory(); - internal static readonly CliOption FolderOption = new("--folder") + internal static readonly Option FolderOption = new("--folder") { Description = Resources.Whether_to_treat_the_workspace_argument_as_a_simple_folder_of_files, }; - internal static readonly CliOption NoRestoreOption = new("--no-restore") + internal static readonly Option NoRestoreOption = new("--no-restore") { Description = Resources.Doesnt_execute_an_implicit_restore_before_formatting, }; - internal static readonly CliOption VerifyNoChanges = new("--verify-no-changes") + internal static readonly Option VerifyNoChanges = new("--verify-no-changes") { Description = Resources.Verify_no_formatting_changes_would_be_performed_Terminates_with_a_non_zero_exit_code_if_any_files_would_have_been_formatted, }; - internal static readonly CliOption DiagnosticsOption = new("--diagnostics") + internal static readonly Option DiagnosticsOption = new("--diagnostics") { AllowMultipleArgumentsPerToken = true, DefaultValueFactory = _ => Array.Empty(), Description = Resources.A_space_separated_list_of_diagnostic_ids_to_use_as_a_filter_when_fixing_code_style_or_3rd_party_issues, }; - internal static readonly CliOption ExcludeDiagnosticsOption = new("--exclude-diagnostics") + internal static readonly Option ExcludeDiagnosticsOption = new("--exclude-diagnostics") { AllowMultipleArgumentsPerToken = true, DefaultValueFactory = _ => Array.Empty(), Description = Resources.A_space_separated_list_of_diagnostic_ids_to_ignore_when_fixing_code_style_or_3rd_party_issues, }; - internal static readonly CliOption SeverityOption = new CliOption("--severity") + internal static readonly Option SeverityOption = new Option("--severity") { Description = Resources.The_severity_of_diagnostics_to_fix_Allowed_values_are_info_warn_and_error, }; - internal static readonly CliOption IncludeOption = new("--include") + internal static readonly Option IncludeOption = new("--include") { AllowMultipleArgumentsPerToken = true, DefaultValueFactory = _ => Array.Empty(), Description = Resources.A_list_of_relative_file_or_folder_paths_to_include_in_formatting_All_files_are_formatted_if_empty, }; - internal static readonly CliOption ExcludeOption = new("--exclude") + internal static readonly Option ExcludeOption = new("--exclude") { AllowMultipleArgumentsPerToken = true, DefaultValueFactory = _ => Array.Empty(), Description = Resources.A_list_of_relative_file_or_folder_paths_to_exclude_from_formatting, }; - internal static readonly CliOption IncludeGeneratedOption = new("--include-generated") + internal static readonly Option IncludeGeneratedOption = new("--include-generated") { Description = Resources.Format_files_generated_by_the_SDK, }; - internal static readonly CliOption VerbosityOption = new CliOption("--verbosity", "-v") + internal static readonly Option VerbosityOption = new Option("--verbosity", "-v") { Description = Resources.Set_the_verbosity_level_Allowed_values_are_quiet_minimal_normal_detailed_and_diagnostic, }; - internal static readonly CliOption BinarylogOption = new CliOption("--binarylog") + internal static readonly Option BinarylogOption = new Option("--binarylog") { HelpName = "binary-log-path", Arity = ArgumentArity.ZeroOrOne, Description = Resources.Log_all_project_or_solution_load_information_to_a_binary_log_file, }; - internal static readonly CliOption ReportOption = new CliOption("--report") + internal static readonly Option ReportOption = new Option("--report") { HelpName = "report-path", Arity = ArgumentArity.ZeroOrOne, @@ -118,7 +118,7 @@ internal static async Task FormatAsync(FormatOptions formatOptions, ILogger return formatResult.GetExitCode(formatOptions.ChangesAreErrors); } - public static void AddCommonOptions(this CliCommand command) + public static void AddCommonOptions(this Command command) { command.Arguments.Add(SlnOrProjectArgument); command.Options.Add(NoRestoreOption); @@ -131,7 +131,7 @@ public static void AddCommonOptions(this CliCommand command) command.Options.Add(ReportOption); } - public static CliArgument DefaultToCurrentDirectory(this CliArgument arg) + public static Argument DefaultToCurrentDirectory(this Argument arg) { arg.DefaultValueFactory = _ => EnsureTrailingSlash(Directory.GetCurrentDirectory()); return arg; diff --git a/src/BuiltInTools/dotnet-format/Commands/FormatStyleCommand.cs b/src/BuiltInTools/dotnet-format/Commands/FormatStyleCommand.cs index d7aaa6519774..9a3575dd0e78 100644 --- a/src/BuiltInTools/dotnet-format/Commands/FormatStyleCommand.cs +++ b/src/BuiltInTools/dotnet-format/Commands/FormatStyleCommand.cs @@ -13,9 +13,9 @@ internal static class FormatStyleCommand { private static readonly FormatStyleHandler s_styleHandler = new(); - internal static CliCommand GetCommand() + internal static Command GetCommand() { - var command = new CliCommand("style", Resources.Run_code_style_analyzers_and_apply_fixes) + var command = new Command("style", Resources.Run_code_style_analyzers_and_apply_fixes) { DiagnosticsOption, ExcludeDiagnosticsOption, @@ -26,7 +26,7 @@ internal static CliCommand GetCommand() return command; } - private class FormatStyleHandler : AsynchronousCliAction + private class FormatStyleHandler : AsynchronousCommandLineAction { public override async Task InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken) { diff --git a/src/BuiltInTools/dotnet-format/Commands/FormatWhitespaceCommand.cs b/src/BuiltInTools/dotnet-format/Commands/FormatWhitespaceCommand.cs index 3c28fe4c5474..c6fd6742c1b2 100644 --- a/src/BuiltInTools/dotnet-format/Commands/FormatWhitespaceCommand.cs +++ b/src/BuiltInTools/dotnet-format/Commands/FormatWhitespaceCommand.cs @@ -28,9 +28,9 @@ internal delegate Task Handler( private static readonly FormatWhitespaceHandler s_formattingHandler = new(); - internal static CliCommand GetCommand() + internal static Command GetCommand() { - var command = new CliCommand("whitespace", Resources.Run_whitespace_formatting) + var command = new Command("whitespace", Resources.Run_whitespace_formatting) { FolderOption }; @@ -61,7 +61,7 @@ internal static void EnsureFolderNotSpecifiedWhenLoggingBinlog(CommandResult sym } } - private class FormatWhitespaceHandler : AsynchronousCliAction + private class FormatWhitespaceHandler : AsynchronousCommandLineAction { public override async Task InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken) { diff --git a/src/BuiltInTools/dotnet-format/Commands/RootFormatCommand.cs b/src/BuiltInTools/dotnet-format/Commands/RootFormatCommand.cs index 55947beed4ad..6b87ddd5a3c5 100644 --- a/src/BuiltInTools/dotnet-format/Commands/RootFormatCommand.cs +++ b/src/BuiltInTools/dotnet-format/Commands/RootFormatCommand.cs @@ -13,9 +13,9 @@ internal static class RootFormatCommand { private static readonly FormatCommandDefaultHandler s_formatCommandHandler = new(); - public static CliRootCommand GetCommand() + public static RootCommand GetCommand() { - var formatCommand = new CliRootCommand(Resources.Formats_code_to_match_editorconfig_settings) + var formatCommand = new RootCommand(Resources.Formats_code_to_match_editorconfig_settings) { FormatWhitespaceCommand.GetCommand(), FormatStyleCommand.GetCommand(), @@ -29,7 +29,7 @@ public static CliRootCommand GetCommand() return formatCommand; } - private class FormatCommandDefaultHandler : AsynchronousCliAction + private class FormatCommandDefaultHandler : AsynchronousCommandLineAction { public override async Task InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken) { diff --git a/src/BuiltInTools/dotnet-watch/CommandLineOptions.cs b/src/BuiltInTools/dotnet-watch/CommandLineOptions.cs index 7441aaaa0496..6af8e81b7899 100644 --- a/src/BuiltInTools/dotnet-watch/CommandLineOptions.cs +++ b/src/BuiltInTools/dotnet-watch/CommandLineOptions.cs @@ -36,11 +36,11 @@ internal sealed class CommandLineOptions { // dotnet watch specific options: - var quietOption = new CliOption("--quiet", "-q") { Description = Resources.Help_Quiet }; - var verboseOption = new CliOption("--verbose") { Description = Resources.Help_Verbose }; - var listOption = new CliOption("--list") { Description = Resources.Help_List }; - var noHotReloadOption = new CliOption("--no-hot-reload") { Description = Resources.Help_NoHotReload }; - var nonInteractiveOption = new CliOption("--non-interactive") { Description = Resources.Help_NonInteractive }; + var quietOption = new Option("--quiet", "-q") { Description = Resources.Help_Quiet }; + var verboseOption = new Option("--verbose") { Description = Resources.Help_Verbose }; + var listOption = new Option("--list") { Description = Resources.Help_List }; + var noHotReloadOption = new Option("--no-hot-reload") { Description = Resources.Help_NoHotReload }; + var nonInteractiveOption = new Option("--non-interactive") { Description = Resources.Help_NonInteractive }; verboseOption.Validators.Add(v => { @@ -50,7 +50,7 @@ internal sealed class CommandLineOptions } }); - CliOption[] watchOptions = + Option[] watchOptions = [ quietOption, verboseOption, @@ -61,12 +61,12 @@ internal sealed class CommandLineOptions // Options we need to know about that are passed through to the subcommand: - var shortProjectOption = new CliOption("-p") { Hidden = true, Arity = ArgumentArity.ZeroOrOne, AllowMultipleArgumentsPerToken = false }; - var longProjectOption = new CliOption("--project") { Hidden = true, Arity = ArgumentArity.ZeroOrOne, AllowMultipleArgumentsPerToken = false }; - var launchProfileOption = new CliOption("--launch-profile", "-lp") { Hidden = true, Arity = ArgumentArity.ZeroOrOne, AllowMultipleArgumentsPerToken = false }; - var noLaunchProfileOption = new CliOption("--no-launch-profile") { Hidden = true }; + var shortProjectOption = new Option("-p") { Hidden = true, Arity = ArgumentArity.ZeroOrOne, AllowMultipleArgumentsPerToken = false }; + var longProjectOption = new Option("--project") { Hidden = true, Arity = ArgumentArity.ZeroOrOne, AllowMultipleArgumentsPerToken = false }; + var launchProfileOption = new Option("--launch-profile", "-lp") { Hidden = true, Arity = ArgumentArity.ZeroOrOne, AllowMultipleArgumentsPerToken = false }; + var noLaunchProfileOption = new Option("--no-launch-profile") { Hidden = true }; - var rootCommand = new CliRootCommand(Resources.Help) + var rootCommand = new RootCommand(Resources.Help) { Directives = { new EnvironmentVariablesDirective() }, }; @@ -92,7 +92,7 @@ internal sealed class CommandLineOptions var rootCommandInvoked = false; rootCommand.SetAction(parseResult => rootCommandInvoked = true); - var cliConfig = new CliConfiguration(rootCommand) + var cliConfig = new CommandLineConfiguration(rootCommand) { Output = output, Error = output, @@ -150,7 +150,7 @@ internal sealed class CommandLineOptions // We assume that forwarded options, if any, are intended for dotnet build. var buildArguments = buildOptions.Select(option => ((IForwardedOption)option).GetForwardingFunction()(parseResult)).SelectMany(args => args).ToArray(); - var targetFrameworkOption = (CliOption?)buildOptions.SingleOrDefault(option => option.Name == "--framework"); + var targetFrameworkOption = (Option?)buildOptions.SingleOrDefault(option => option.Name == "--framework"); return new() { @@ -176,8 +176,8 @@ internal sealed class CommandLineOptions private static IReadOnlyList GetCommandArguments( ParseResult parseResult, - IReadOnlyList watchOptions, - CliCommand? explicitCommand) + IReadOnlyList - + https://github.com/dotnet/sourcelink - fab841741055c19fc07623f8947cecc9a0f63baa + 3c34adccbef5b95e680bc6e6424e3ebbbf4cd294 - + https://github.com/dotnet/sourcelink - fab841741055c19fc07623f8947cecc9a0f63baa + 3c34adccbef5b95e680bc6e6424e3ebbbf4cd294 - + https://github.com/dotnet/sourcelink - fab841741055c19fc07623f8947cecc9a0f63baa + 3c34adccbef5b95e680bc6e6424e3ebbbf4cd294 - + https://github.com/dotnet/sourcelink - fab841741055c19fc07623f8947cecc9a0f63baa + 3c34adccbef5b95e680bc6e6424e3ebbbf4cd294 - + https://github.com/dotnet/sourcelink - fab841741055c19fc07623f8947cecc9a0f63baa + 3c34adccbef5b95e680bc6e6424e3ebbbf4cd294 - + https://github.com/dotnet/sourcelink - fab841741055c19fc07623f8947cecc9a0f63baa + 3c34adccbef5b95e680bc6e6424e3ebbbf4cd294 - + https://github.com/dotnet/sourcelink - fab841741055c19fc07623f8947cecc9a0f63baa + 3c34adccbef5b95e680bc6e6424e3ebbbf4cd294 diff --git a/eng/Versions.props b/eng/Versions.props index 291903b685f2..84477ccf2c56 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -277,12 +277,12 @@ - 10.0.0-beta.25080.2 - 10.0.0-beta.25080.2 - 10.0.0-beta.25080.2 - 10.0.0-beta.25080.2 - 10.0.0-beta.25080.2 - 10.0.0-beta.25080.2 + 10.0.0-beta.25081.2 + 10.0.0-beta.25081.2 + 10.0.0-beta.25081.2 + 10.0.0-beta.25081.2 + 10.0.0-beta.25081.2 + 10.0.0-beta.25081.2 From 9ada413c1046284ed16d1971d957e41db724c2ab Mon Sep 17 00:00:00 2001 From: "dotnet-maestro[bot]" Date: Mon, 3 Feb 2025 22:46:07 +0000 Subject: [PATCH 4/4] Update dependencies from https://github.com/dotnet/arcade build 20250203.6 Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.SignTool , Microsoft.DotNet.XliffTasks , Microsoft.DotNet.XUnitExtensions From Version 10.0.0-beta.25080.7 -> To Version 10.0.0-beta.25103.6 --- eng/Version.Details.xml | 28 ++++++++++++++-------------- eng/Versions.props | 8 ++++---- global.json | 4 ++-- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 9f7b18fc94da..ef528e27fc14 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -604,34 +604,34 @@ - + https://github.com/dotnet/arcade - bbea86c614fcf4380c58c80eacd279a0b8305a79 + 0b971a5e11be58af22ca83fbc111a1207bb62920 - + https://github.com/dotnet/arcade - bbea86c614fcf4380c58c80eacd279a0b8305a79 + 0b971a5e11be58af22ca83fbc111a1207bb62920 - + https://github.com/dotnet/arcade - bbea86c614fcf4380c58c80eacd279a0b8305a79 + 0b971a5e11be58af22ca83fbc111a1207bb62920 - + https://github.com/dotnet/arcade - bbea86c614fcf4380c58c80eacd279a0b8305a79 + 0b971a5e11be58af22ca83fbc111a1207bb62920 - + https://github.com/dotnet/arcade - bbea86c614fcf4380c58c80eacd279a0b8305a79 + 0b971a5e11be58af22ca83fbc111a1207bb62920 - + https://github.com/dotnet/arcade - bbea86c614fcf4380c58c80eacd279a0b8305a79 + 0b971a5e11be58af22ca83fbc111a1207bb62920 - + https://github.com/dotnet/arcade - bbea86c614fcf4380c58c80eacd279a0b8305a79 + 0b971a5e11be58af22ca83fbc111a1207bb62920 diff --git a/eng/Versions.props b/eng/Versions.props index 84477ccf2c56..340ed5b97b76 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -270,10 +270,10 @@ - 10.0.0-beta.25080.7 - 10.0.0-beta.25080.7 - 10.0.0-beta.25080.7 - 10.0.0-beta.25080.7 + 10.0.0-beta.25103.6 + 10.0.0-beta.25103.6 + 10.0.0-beta.25103.6 + 10.0.0-beta.25103.6 diff --git a/global.json b/global.json index 069338eb4678..716aac7bc79a 100644 --- a/global.json +++ b/global.json @@ -17,8 +17,8 @@ "cmake": "latest" }, "msbuild-sdks": { - "Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.25080.7", - "Microsoft.DotNet.Helix.Sdk": "10.0.0-beta.25080.7", + "Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.25103.6", + "Microsoft.DotNet.Helix.Sdk": "10.0.0-beta.25103.6", "Microsoft.Build.NoTargets": "3.7.0", "Microsoft.DotNet.CMake.Sdk": "9.0.0-beta.24217.1" }