6 types derived from RootCommand
aspire (1)
Commands\RootCommand.cs (1)
23internal sealed class RootCommand : BaseRootCommand
crossgen2 (1)
Crossgen2RootCommand.cs (1)
17internal class Crossgen2RootCommand : RootCommand
dotnet-watch (1)
CommandLine\DotnetWatchCommandDefinition.cs (1)
10internal sealed class DotnetWatchCommandDefinition : RootCommand
ilasm (1)
IlasmRootCommand.cs (1)
10internal sealed class IlasmRootCommand : RootCommand
ilc (1)
ILCompilerRootCommand.cs (1)
15internal sealed class ILCompilerRootCommand : RootCommand
Microsoft.DotNet.Cli.Definitions (1)
Commands\DotNetCommandDefinition.cs (1)
41internal sealed class DotNetCommandDefinition : RootCommand
16 instantiations of RootCommand
Aspire.RuntimeIdentifier.Tool (1)
Program.cs (1)
17RootCommand rootCommand = new("Aspire.RuntimeIdentifier.Tool v" + FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).ProductVersion)
aspire-managed (1)
Program.cs (1)
36var rootCommand = new RootCommand("Aspire NuGet Helper - Package operations for Aspire CLI bundle");
cdac-build-tool (1)
Program.cs (1)
13RootCommand rootCommand = new();
ConfigurationSchemaGenerator (1)
RootGenerateCommand.cs (1)
31var formatCommand = new RootCommand("Generates ConfigurationSchema.json files.")
dotnet-format (1)
Commands\RootFormatCommand.cs (1)
18var formatCommand = new RootCommand(Resources.Formats_code_to_match_editorconfig_settings)
dotnet-sourcelink (1)
dotnet-suggest (1)
SuggestionDispatcher.cs (1)
65RootCommand = new RootCommand
GenerateDocumentationAndConfigFiles (1)
Program.cs (1)
62var rootCommand = new RootCommand("Generate documentation and configuration files for analyzers");
Microsoft.DotNet.Cli.Definitions (1)
Help\HelpContext.cs (1)
21private static readonly Lazy<ParseResult> EmptyParseResult = new(() => new RootCommand().Parse(Array.Empty<string>()));
Microsoft.DotNet.MacOsPkg.Cli (1)
Program.cs (1)
40var rootCommand = new RootCommand();
Microsoft.DotNet.VersionTools.Cli (1)
Program.cs (1)
16RootCommand rootCommand = new("Microsoft.DotNet.VersionTools.Cli v" + Environment.Version.ToString(2))
Microsoft.Extensions.AI.Evaluation.Console (1)
Program.cs (1)
49var rootCmd = new RootCommand(Banner);
Microsoft.NET.Sdk.BlazorWebAssembly.Tool (1)
Program.cs (1)
15RootCommand rootCommand = new();
Microsoft.NET.Sdk.StaticWebAssets.Tool (1)
Program.cs (1)
15RootCommand rootCommand = new();
NuGet.CommandLine.XPlat (1)
Program.cs (1)
108RootCommand rootCommand = new RootCommand();
System.CommandLine (1)
ParseResult.cs (1)
62internal static ParseResult Empty() => new RootCommand().Parse(Array.Empty<string>());
39 references to RootCommand
aspire (1)
Commands\RootCommand.cs (1)
19using BaseRootCommand = System.CommandLine.RootCommand;
Aspire.RuntimeIdentifier.Tool (1)
Program.cs (1)
17RootCommand rootCommand = new("Aspire.RuntimeIdentifier.Tool v" + FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).ProductVersion)
aspire-managed (1)
Program.cs (1)
36var rootCommand = new RootCommand("Aspire NuGet Helper - Package operations for Aspire CLI bundle");
cdac-build-tool (1)
Program.cs (1)
13RootCommand rootCommand = new();
ConfigurationSchemaGenerator (3)
Program.cs (1)
13var rootCommand = RootGenerateCommand.GetCommand();
RootGenerateCommand.cs (2)
29public static RootCommand GetCommand() 31var formatCommand = new RootCommand("Generates ConfigurationSchema.json files.")
crossgen2 (4)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (4)
123public static RootCommand UseVersion(this RootCommand command) 137public static RootCommand UseExtendedHelp(this RootCommand command, Action<ParseResult> customizer)
dotnet-format (3)
Commands\RootFormatCommand.cs (2)
16public static RootCommand GetCommand() 18var formatCommand = new RootCommand(Resources.Formats_code_to_match_editorconfig_settings)
Program.cs (1)
12var rootCommand = RootFormatCommand.GetCommand();
dotnet-sourcelink (3)
dotnet-suggest (1)
SuggestionDispatcher.cs (1)
80public RootCommand RootCommand { get; }
GenerateDocumentationAndConfigFiles (1)
Program.cs (1)
62var rootCommand = new RootCommand("Generate documentation and configuration files for analyzers");
ilc (4)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (4)
123public static RootCommand UseVersion(this RootCommand command) 137public static RootCommand UseExtendedHelp(this RootCommand command, Action<ParseResult> customizer)
Microsoft.DotNet.MacOsPkg.Cli (3)
Program.cs (3)
30RootCommand rootCommand = Setup(); 38private static RootCommand Setup() 40var rootCommand = new RootCommand();
Microsoft.DotNet.VersionTools.Cli (1)
Program.cs (1)
16RootCommand rootCommand = new("Microsoft.DotNet.VersionTools.Cli v" + Environment.Version.ToString(2))
Microsoft.Extensions.AI.Evaluation.Console (1)
Program.cs (1)
49var rootCmd = new RootCommand(Banner);
Microsoft.NET.Sdk.BlazorWebAssembly.Tool (1)
Program.cs (1)
15RootCommand rootCommand = new();
Microsoft.NET.Sdk.StaticWebAssets.Tool (1)
Program.cs (1)
15RootCommand rootCommand = new();
NuGet.CommandLine.XPlat (4)
NuGetCommands.cs (3)
27public static void Add(RootCommand rootCommand, Option<bool> interactiveOption, IVirtualProjectBuilder? virtualProjectBuilder = null) 41public static void Add(RootCommand rootCommand, Option<bool> interactiveOption) 47public static void Add(RootCommand rootCommand)
Program.cs (1)
108RootCommand rootCommand = new RootCommand();
System.CommandLine (5)
Command.cs (1)
22/// For simple applications that only have one action, see <see cref="RootCommand"/>.
Help\HelpBuilder.cs (1)
138yield return (parentCommand is RootCommand root ? root.HelpName : null) ?? parentCommand.Name;
Parsing\ParseOperation.cs (1)
320if (_rootCommand is RootCommand { Directives.Count: > 0 })
Parsing\StringExtensions.cs (2)
273if (inferRootCommand && args[0] == RootCommand.ExecutablePath) 384if (command is RootCommand { Directives: IList<Directive> directives })