924 references to new
aspire (147)
Commands\AddCommand.cs (3)
42
private static readonly Option<string> s_versionOption =
new
("--version")
46
private static readonly Option<string?> s_sourceOption =
new
("--source", "-s")
50
private static readonly Option<bool> s_allOption =
new
("--all")
Commands\AgentInitCommand.cs (3)
55
private static readonly Option<string?> s_workspaceRootOption =
new
("--workspace-root")
60
internal static readonly Option<string?> s_skillLocationsOption =
new
("--skill-locations")
69
internal static readonly Option<string?> s_skillsOption =
new
("--skills")
Commands\AgentTelemetryCommand.cs (7)
41
private readonly Option<string?> _eventTypeOption =
new
("--event-type")
46
private readonly Option<string?> _clientNameOption =
new
("--client-name")
51
private readonly Option<string?> _sessionIdOption =
new
("--session-id")
56
private readonly Option<string?> _skillNameOption =
new
("--skill-name")
61
private readonly Option<string?> _toolNameOption =
new
("--tool-name")
66
private readonly Option<string?> _fileReferenceOption =
new
("--file-reference")
71
private readonly Option<string?> _timestampOption =
new
("--timestamp")
Commands\ApiGetCommand.cs (1)
25
private static readonly Option<OutputFormat> s_formatOption =
new
("--format")
Commands\ApiListCommand.cs (1)
27
private static readonly Option<OutputFormat> s_formatOption =
new
("--format")
Commands\ApiSearchCommand.cs (3)
27
private static readonly Option<string?> s_languageOption = new
Option
<string?>("--language")
32
private static readonly Option<OutputFormat> s_formatOption =
new
("--format")
37
private static readonly Option<int?> s_limitOption =
new
("--limit", "-n")
Commands\AppHostLauncher.cs (3)
61
internal static readonly Option<OutputFormat> s_formatOption =
new
("--format")
69
internal static readonly Option<bool> s_isolatedOption =
new
("--isolated")
77
internal static readonly Option<string?> s_launchProfileOption =
new
("--launch-profile", "-lp")
Commands\ConfigCommand.cs (4)
119
private static readonly Option<bool> s_globalOption =
new
("--global", "-g")
201
private static readonly Option<bool> s_allOption =
new
("--all")
357
private static readonly Option<bool> s_globalOption =
new
("--global", "-g")
445
var jsonOption = new
Option
<bool>("--json")
Commands\DashboardRunCommand.cs (7)
38
private static readonly Option<string?> s_frontendUrlOption =
new
("--frontend-url")
43
private static readonly Option<string?> s_otlpGrpcUrlOption =
new
("--otlp-grpc-url")
48
private static readonly Option<string?> s_otlpHttpUrlOption =
new
("--otlp-http-url")
57
private static readonly Option<bool> s_allowAnonymousOption =
new
("--allow-anonymous")
62
private static readonly Option<string?> s_applicationNameOption =
new
("--application-name")
67
private static readonly Option<string?> s_persistenceModeOption =
new
("--persistence")
72
private static readonly Option<string?> s_configFilePathOption =
new
("--config-file-path")
Commands\DeployCommand.cs (1)
26
_clearCacheOption = new
Option
<bool>("--clear-cache")
Commands\DescribeCommand.cs (4)
87
private static readonly Option<bool> s_followOption =
new
("--follow", "-f")
91
private static readonly Option<OutputFormat> s_formatOption =
new
("--format")
95
private static readonly Option<bool> s_includeHiddenOption =
new
("--include-hidden")
99
private static readonly Option<bool> s_includeDisabledCommandsOption =
new
("--include-disabled-commands")
Commands\DestroyCommand.cs (1)
26
_yesOption = new
Option
<bool>("--yes", "-y")
Commands\DocsGetCommand.cs (2)
27
private static readonly Option<string?> s_sectionOption =
new
("--section")
32
private static readonly Option<OutputFormat> s_formatOption =
new
("--format")
Commands\DocsListCommand.cs (1)
24
private static readonly Option<OutputFormat> s_formatOption =
new
("--format")
Commands\DocsSearchCommand.cs (2)
29
private static readonly Option<OutputFormat> s_formatOption =
new
("--format")
34
private static readonly Option<int?> s_limitOption =
new
("--limit", "-n")
Commands\DoctorCommand.cs (2)
31
private static readonly Option<OutputFormat> s_formatOption =
new
("--format")
35
private static readonly Option<bool> s_selfOption =
new
("--self")
Commands\ExportCommand.cs (2)
32
private static readonly Option<string?> s_outputOption =
new
("--output", "-o")
40
private static readonly Option<bool> s_includeHiddenOption =
new
("--include-hidden")
Commands\InitCommand.cs (4)
51
private static readonly Option<string?> s_sourceOption =
new
("--source", "-s")
58
private static readonly Option<string?> s_versionOption =
new
("--version")
92
_channelOption = new
Option
<string?>("--channel")
99
_languageOption = new
Option
<string?>("--language")
Commands\IntegrationSearchCommand.cs (2)
24
private readonly Option<OutputFormat> _formatOption =
new
("--format")
28
private readonly Option<bool> _allOption =
new
("--all")
Commands\LogsCommand.cs (6)
90
private static readonly Option<bool> s_followOption =
new
("--follow", "-f")
94
private static readonly Option<OutputFormat> s_formatOption =
new
("--format")
98
private static readonly Option<int?> s_tailOption =
new
("--tail", "-n")
102
private static readonly Option<bool> s_timestampsOption =
new
("--timestamps", "-t")
106
private static readonly Option<bool> s_includeHiddenOption =
new
("--include-hidden")
110
private static readonly Option<string?> s_searchOption =
new
("--search")
Commands\LsCommand.cs (3)
27
private static readonly Option<OutputFormat> s_formatOption =
new
("--format")
32
private static readonly Option<bool> s_allOption =
new
("--all")
37
private static readonly Option<bool> s_streamOption =
new
("--stream")
Commands\McpCallCommand.cs (1)
32
private static readonly Option<string?> s_inputOption =
new
("--input", "-i")
Commands\McpToolsCommand.cs (1)
24
private static readonly Option<OutputFormat> s_formatOption =
new
("--format")
Commands\NewCommand.cs (7)
38
internal static readonly Option<string?> s_nameOption =
new
("--name", "-n")
43
internal static readonly Option<string?> s_outputOption =
new
("--output", "-o")
48
internal static readonly Option<string?> s_sourceOption =
new
("--source", "-s")
53
private static readonly Option<string?> s_versionOption =
new
("--version")
59
internal static readonly Option<bool?> s_suppressAgentInitOption =
new
("--suppress-agent-init")
97
_channelOption = new
Option
<string?>("--channel")
106
_languageOption = new
Option
<string?>("--language")
Commands\OptionWithLegacy.cs (2)
23
InnerOption =
new
(optionName) { Description = description };
24
LegacyOption =
new
(legacyName) { Hidden = true };
Commands\PipelineCommandBase.cs (6)
56
protected static readonly Option<string?> s_pipelineLogLevelOption =
new
("--pipeline-log-level")
61
protected static readonly Option<bool> s_includeExceptionDetailsOption =
new
("--include-exception-details")
66
protected static readonly Option<string?> s_environmentOption =
new
("--environment", "-e")
71
protected static readonly Option<bool> s_noBuildOption =
new
("--no-build")
76
protected static readonly Option<bool> s_listStepsOption =
new
("--list-steps")
105
_outputPathOption = new
Option
<string?>("--output-path", "-o")
Commands\PsCommand.cs (2)
79
private static readonly Option<OutputFormat> s_formatOption =
new
("--format")
84
private static readonly Option<bool> s_followOption =
new
("--follow", "-f")
Commands\RenderCommand.cs (3)
70
private static readonly Option<string?> s_scenarioOption =
new
("--scenario")
76
private static readonly Option<int?> s_consoleWidthOption =
new
("--console-width")
82
private static readonly Option<bool> s_listScenariosOption =
new
("--list-scenarios")
Commands\ResourceCommand.cs (5)
44
private static readonly Option<bool> s_includeHiddenOption =
new
("--include-hidden")
50
private static readonly Option<bool> s_loadArgumentsOption =
new
("--load-arguments")
394
(true, _, false) => new
Option
<bool>($"--{optionName}")
398
(_, true, false) => new
Option
<double?>($"--{optionName}")
404
_ => new
Option
<string?>($"--{optionName}")
Commands\RootCommand.cs (12)
23
public static readonly Option<bool> DebugOption =
new
(CommonOptionNames.Debug, CommonOptionNames.DebugShort)
30
public static readonly Option<LogLevel?> DebugLevelOption =
new
("--log-level", "-l")
36
public static readonly Option<bool> NonInteractiveOption =
new
(CommonOptionNames.NonInteractive)
42
public static readonly Option<bool> NoLogoOption =
new
(CommonOptionNames.NoLogo)
48
public static readonly Option<bool> BannerOption =
new
(CommonOptionNames.Banner)
54
public static readonly Option<bool> WaitForDebuggerOption =
new
(CommonOptionNames.WaitForDebugger)
61
public static readonly Option<bool> CliWaitForDebuggerOption =
new
(CommonOptionNames.CliWaitForDebugger)
69
public static readonly Option<bool> StartDebugSessionOption =
new
(CommonOptionNames.StartDebugSession)
76
public static readonly Option<bool> CaptureProfileOption =
new
("--capture-profile")
83
public static readonly Option<FileInfo?> CaptureProfileOutputOption =
new
("--capture-profile-output")
89
public static readonly Option<int> CaptureProfileDelayOption =
new
("--capture-profile-delay")
96
internal static readonly Option<string?> s_logFileOption =
new
("--log-file")
Commands\RunCommand.cs (2)
119
private static readonly Option<bool> s_detachOption =
new
("--detach")
123
private static readonly Option<bool> s_noBuildOption =
new
("--no-build")
Commands\Sdk\SdkDumpCommand.cs (3)
44
private static readonly Option<FileInfo?> s_outputOption =
new
("--output", "-o")
48
private static readonly Option<DirectoryInfo?> s_outputDirectoryOption =
new
("--output-directory")
52
private static readonly Option<OutputFormat> s_formatOption =
new
("--format")
Commands\Sdk\SdkExportCommand.cs (2)
35
private static readonly Option<string> s_languageOption =
new
("--language", "-l")
41
private static readonly Option<string?> s_packageOption =
new
("--package", "-p")
Commands\Sdk\SdkGenerateCommand.cs (2)
30
private static readonly Option<string> s_languageOption =
new
("--language", "-l")
35
private static readonly Option<DirectoryInfo> s_outputOption =
new
("--output", "-o")
Commands\SecretListCommand.cs (1)
20
private static readonly Option<OutputFormat?> s_formatOption =
new
("--format")
Commands\SetupCommand.cs (2)
19
private static readonly Option<string?> s_installPathOption =
new
("--install-path")
24
private static readonly Option<bool> s_forceOption =
new
("--force")
Commands\StartCommand.cs (1)
25
private static readonly Option<bool> s_noBuildOption =
new
("--no-build")
Commands\StopCommand.cs (2)
42
private static readonly Option<bool> s_allOption =
new
("--all")
47
private static readonly Option<bool> s_forceOption =
new
("--force")
Commands\TelemetryCommandHelpers.cs (9)
58
internal static Option<OutputFormat> CreateFormatOption() =>
new
("--format")
66
internal static Option<int?> CreateLimitOption() =>
new
("--limit", "-n")
74
internal static Option<bool> CreateFollowOption() =>
new
("--follow", "-f")
84
var option = alias is null ? new
Option
<string?>(name) : new
Option
<string?>(name, alias);
92
internal static Option<bool?> CreateHasErrorOption() =>
new
("--has-error")
100
internal static Option<string?> CreateSearchOption() =>
new
("--search")
108
internal static Option<string?> CreateDashboardUrlOption() =>
new
("--dashboard-url")
116
internal static Option<string?> CreateApiKeyOption() =>
new
("--api-key")
Commands\TelemetryLogsCommand.cs (1)
43
private static readonly Option<string?> s_severityOption =
new
("--severity")
Commands\TerminalAttachCommand.cs (2)
49
private static readonly Option<int?> s_replicaOption =
new
("--replica", "-r")
54
private static readonly Option<bool> s_viewerOption =
new
("--viewer")
Commands\TerminalPsCommand.cs (2)
46
private static readonly Option<OutputFormat> s_formatOption =
new
("--format")
51
private static readonly Option<bool> s_verboseOption =
new
("--verbose", "-v")
Commands\UpdateCommand.cs (6)
45
private static readonly Option<bool> s_selfOption =
new
("--self")
49
private static readonly Option<bool> s_yesOption =
new
("--yes")
54
private static readonly Option<bool> s_migrateOption =
new
("--migrate")
58
private static readonly Option<string?> s_nugetConfigDirOption =
new
("--nuget-config-dir")
103
_channelOption = new
Option
<string?>("--channel")
112
_qualityOption = new
Option
<string?>("--quality")
Commands\WaitCommand.cs (2)
26
private static readonly Option<string> s_statusOption =
new
("--status")
34
private static readonly Option<int> s_timeoutOption =
new
("--timeout")
Profiling\ProfileCaptureOptions.cs (3)
39
var captureProfileOption = new
Option
<bool>(AspireRootCommand.CaptureProfileOption.Name);
40
var captureProfileOutputOption = new
Option
<string?>(AspireRootCommand.CaptureProfileOutputOption.Name);
41
var captureProfileDelayOption = new
Option
<int>(AspireRootCommand.CaptureProfileDelayOption.Name)
Templating\CliTemplateFactory.cs (2)
55
private readonly Option<bool?> _localhostTldOption =
new
("--localhost-tld")
60
private readonly Option<bool?> _useRedisCacheOption =
new
("--use-redis-cache")
Templating\DotNetTemplateFactory.cs (4)
36
private readonly Option<bool?> _localhostTldOption =
new
("--localhost-tld")
41
private readonly Option<bool?> _useRedisCacheOption =
new
("--use-redis-cache")
46
private readonly Option<string?> _testFrameworkOption =
new
("--test-framework")
50
private readonly Option<string?> _xunitVersionOption =
new
("--xunit-version")
aspire-managed (28)
NuGet\Commands\LayoutCommand.cs (5)
22
var assetsOption = new
Option
<string>("--assets", "-a")
29
var outputOption = new
Option
<string>("--output", "-o")
36
var frameworkOption = new
Option
<string>("--framework", "-f")
43
var runtimeIdentifierOption = new
Option
<string?>("--runtime-identifier", "--rid")
49
var verboseOption = new
Option
<bool>("--verbose", "-v")
NuGet\Commands\ManifestCommand.cs (5)
22
var assetsOption = new
Option
<string>("--assets", "-a")
29
var outputOption = new
Option
<string>("--output", "-o")
36
var frameworkOption = new
Option
<string>("--framework", "-f")
43
var runtimeIdentifierOption = new
Option
<string?>("--runtime-identifier", "--rid")
49
var verboseOption = new
Option
<bool>("--verbose", "-v")
NuGet\Commands\RestoreCommand.cs (9)
33
var packageOption = new
Option
<string[]>("--package", "-p")
41
var frameworkOption = new
Option
<string>("--framework", "-f")
48
var runtimeIdentifierOption = new
Option
<string?>("--runtime-identifier", "--rid")
54
var outputOption = new
Option
<string>("--output", "-o")
61
var sourceOption = new
Option
<string[]>("--source")
69
var configOption = new
Option
<string?>("--nuget-config")
75
var workingDirOption = new
Option
<string?>("--working-dir", "-w")
81
var noNugetOrgOption = new
Option
<bool>("--no-nuget-org")
87
var verboseOption = new
Option
<bool>("--verbose")
NuGet\Commands\SearchCommand.cs (9)
27
var queryOption = new
Option
<string>("--query", "-q")
34
var prereleaseOption = new
Option
<bool>("--prerelease", "-p")
40
var takeOption = new
Option
<int>("--take", "-t")
47
var skipOption = new
Option
<int>("--skip", "-s")
54
var sourceOption = new
Option
<string[]>("--source")
62
var configOption = new
Option
<string?>("--nuget-config")
68
var workingDirOption = new
Option
<string?>("--working-dir", "-d")
74
var formatOption = new
Option
<string>("--format", "-f")
81
var verboseOption = new
Option
<bool>("--verbose", "-v")
Aspire.Cli.Tests (25)
Commands\ParseResultHelperTests.cs (3)
150
var valueOption = new System.CommandLine.
Option
<string>("--value");
165
var valuesOption = new System.CommandLine.
Option
<string[]>("--values")
170
var flagOption = new System.CommandLine.
Option
<bool>("--flag");
Interaction\ConsoleInteractionServiceTests.cs (22)
1325
var option = new
Option
<string?>("--value");
1388
var option = new
Option
<bool>("--confirm");
1418
var option = new
Option
<bool?>("--confirm");
1435
var option = new
Option
<bool?>("--confirm");
1517
var option = new
Option
<bool>("--flag");
1529
var option = new
Option
<bool>("--flag");
1545
var option = new
Option
<string?>(optionName);
1575
var option = new
Option
<string?>("--choice");
1597
var option = new
Option
<string?>("--items");
1624
var option = new
Option
<string?>("--items");
1650
var option = new
Option
<string?>("--items");
1682
var option = new
Option
<string?>("--items");
1708
var option = new
Option
<string?>("--choice");
1726
var option = new
Option
<string?>("--choice");
1744
var option = new
Option
<string?>("--items");
1759
var option = new
Option
<bool?>("--yes");
1771
var option = new
Option
<bool?>("--include");
1833
var option = new
Option
<string?>("--choice");
1850
var option = new
Option
<string?>("--choice");
1869
var option = new
Option
<string?>("--items");
1888
var option = new
Option
<string?>("--choice");
1907
var option = new
Option
<string?>("--items");
Aspire.RuntimeIdentifier.Tool (3)
Program.cs (3)
22
Option<string?> runtimeGraphPathOption =
new
("--runtimeGraphPath")
28
Option<string?> netcoreSdkRuntimeIdentifierOption =
new
("--netcoreSdkRuntimeIdentifier")
34
Option<string[]> supportedRidsOption =
new
("--supportedRids")
Aspire.TerminalHost (1)
TerminalHostArgs.cs (1)
144
var option = new
Option
<T>(name)
cdac-build-tool (4)
ComposeCommand.cs (3)
14
private readonly Option<string> outputFile =
new
("-o") { Arity = ArgumentArity.ExactlyOne, HelpName = "OUTPUT", Required = true, Description = "Output file" };
15
private readonly Option<string> baselinePath =
new
("-b", "--baseline") { Arity = ArgumentArity.ExactlyOne, HelpName = "BASELINEPATH", Description = "Directory containing the baseline contracts"};
16
private readonly Option<string> templateFile =
new
("-i", "--input-template") { Arity = ArgumentArity.ExactlyOne, HelpName = "TEMPLATE", Description = "Contract descriptor template to be filled in" };
Program.cs (1)
14
var verboseOption = new
Option
<bool>("-v", "--verbose") {Recursive = true, Description = "Verbose"};
ConfigurationSchemaGenerator (3)
RootGenerateCommand.cs (3)
10
private static readonly Option<string> s_inputOption =
new
("--input")
16
private static readonly Option<string[]> s_referencesOption =
new
("--reference")
23
private static readonly Option<string> s_outputOption =
new
("--output")
crossgen2 (67)
Crossgen2RootCommand.cs (67)
22
new
("--unrooted-input-file-paths", "-u") { CustomParser = result => Helpers.BuildPathDictionary(result.Tokens, true), DefaultValueFactory = result => Helpers.BuildPathDictionary(result.Tokens, true), Description = SR.UnrootedInputFilesToCompile };
24
new
("--reference", "-r") { CustomParser = result => Helpers.BuildPathDictionary(result.Tokens, false), DefaultValueFactory = result => Helpers.BuildPathDictionary(result.Tokens, false), Description = SR.ReferenceFiles };
26
new
("--instruction-set") { Description = SR.InstructionSets };
28
new
("--max-vectort-bitwidth") { Description = SR.MaxVectorTBitWidths };
30
new
("--mibc", "-m") { DefaultValueFactory = _ => Array.Empty<string>(), Description = SR.MibcFiles };
32
new
("--out", "-o") { Description = SR.OutputFilePath };
34
new
("--obj-format", "-f") { CustomParser = MakeOutputFormat, DefaultValueFactory = MakeOutputFormat, Description = SR.OutputFormat, HelpName = "arg" };
36
new
("--compositerootpath", "--crp") { Description = SR.CompositeRootPath };
38
new
("--optimize", "-O") { Description = SR.EnableOptimizationsOption };
40
new
("--optimize-disabled", "--Od") { Description = SR.DisableOptimizationsOption };
42
new
("--optimize-space", "--Os") { Description = SR.OptimizeSpaceOption };
44
new
("--optimize-time", "--Ot") { Description = SR.OptimizeSpeedOption };
46
new
("--enable-cached-interface-dispatch-support", "--CID") { Description = SR.EnableCachedInterfaceDispatchSupport };
48
new
("--type-validation") { DefaultValueFactory = _ => TypeValidationRule.Automatic, Description = SR.TypeValidation, HelpName = "arg" };
50
new
("--inputbubble") { Description = SR.InputBubbleOption };
52
new
("--inputbubbleref") { CustomParser = result => Helpers.BuildPathDictionary(result.Tokens, false), DefaultValueFactory = result => Helpers.BuildPathDictionary(result.Tokens, false), Description = SR.InputBubbleReferenceFiles };
54
new
("--composite") { Description = SR.CompositeBuildMode };
56
new
("--compositekeyfile") { Description = SR.CompositeKeyFile };
58
new
("--rtr-header-symbol-name") { Description = SR.ReadyToRunHeaderSymbolName };
60
new
("--compile-no-methods") { Description = SR.CompileNoMethodsOption };
62
new
("--out-near-input") { Description = SR.OutNearInputOption };
64
new
("--single-file-compilation") { Description = SR.SingleFileCompilationOption };
66
new
("--partial") { Description = SR.PartialImageOption };
68
new
("--compilebubblegenerics") { Description = SR.BubbleGenericsOption };
70
new
("--embed-pgo-data") { Description = SR.EmbedPgoDataOption };
72
new
("--dgmllog") { Description = SR.SaveDependencyLogOption };
74
new
("--fulllog") { Description = SR.SaveDetailedLogOption };
76
new
("--verbose") { Description = SR.VerboseLoggingOption };
78
new
("--systemmodule") { DefaultValueFactory = _ => Helpers.DefaultSystemModule, Description = SR.SystemModuleOverrideOption };
80
new
("--waitfordebugger") { Description = SR.WaitForDebuggerOption };
82
new
("--codegenopt") { DefaultValueFactory = _ => Array.Empty<string>(), Description = SR.CodeGenOptions };
84
new
("--support-ibc") { Description = SR.SupportIbc };
86
new
("--resilient") { Description = SR.ResilientOption };
88
new
("--imagebase") { Description = SR.ImageBase };
90
new
("--targetarch") { Description = SR.TargetArchOption };
92
new
("--maxgenericcycle") { DefaultValueFactory = _ => ReadyToRunCompilerContext.DefaultGenericCycleDepthCutoff, Description = SR.GenericCycleDepthCutoff };
94
new
("--maxgenericcyclebreadth") { DefaultValueFactory = _ => ReadyToRunCompilerContext.DefaultGenericCycleBreadthCutoff, Description = SR.GenericCycleBreadthCutoff };
96
new
("--targetos") { Description = SR.TargetOSOption };
98
new
("--jitpath") { Description = SR.JitPathOption };
100
new
("--print-repro-instructions") { Description = SR.PrintReproInstructionsOption };
102
new
("--singlemethodtypename") { Description = SR.SingleMethodTypeName };
104
new
("--singlemethodname") { Description = SR.SingleMethodMethodName };
106
new
("--singlemethodindex") { Description = SR.SingleMethodIndex };
108
new
("--singlemethodgenericarg") { Description = SR.SingleMethodGenericArgs };
110
new
("--parallelism") { CustomParser = MakeParallelism, DefaultValueFactory = MakeParallelism, Description = SR.ParalellismOption };
112
new
("--custom-pe-section-alignment") { Description = SR.CustomPESectionAlignmentOption };
114
new
("--map") { Description = SR.MapFileOption };
116
new
("--mapcsv") { Description = SR.MapCsvFileOption };
118
new
("--pdb") { Description = SR.PdbFileOption };
120
new
("--pdb-path") { Description = SR.PdbFilePathOption };
122
new
("--perfmap") { Description = SR.PerfMapFileOption };
124
new
("--perfmap-path") { Description = SR.PerfMapFilePathOption };
126
new
("--perfmap-format-version") { DefaultValueFactory = _ => 0, Description = SR.PerfMapFormatVersionOption };
128
new
("--opt-cross-module") { Description = SR.CrossModuleInlining };
130
new
("--opt-async-methods") { Description = SR.AsyncModuleOptimization };
132
new
("--non-local-generics-module") { DefaultValueFactory = _ => string.Empty, Description = SR.NonLocalGenericsModule };
134
new
("--method-layout") { CustomParser = MakeMethodLayoutAlgorithm, DefaultValueFactory = MakeMethodLayoutAlgorithm, Description = SR.MethodLayoutOption, HelpName = "arg" };
136
new
("--file-layout") { CustomParser = MakeFileLayoutAlgorithm, DefaultValueFactory = MakeFileLayoutAlgorithm, Description = SR.FileLayoutOption, HelpName = "arg" };
138
new
("--verify-type-and-field-layout") { Description = SR.VerifyTypeAndFieldLayoutOption };
140
new
("--callchain-profile") { Description = SR.CallChainProfileFile };
142
new
("--make-repro-path") { Description = "Path where to place a repro package" };
144
new
("--hot-cold-splitting") { Description = SR.HotColdSplittingOption };
146
new
("--strip-inlining-info") { Description = SR.StripInliningInfoOption };
148
new
("--strip-debug-info") { Description = SR.StripDebugInfoOption };
150
new
("--strip-il-bodies") { Description = SR.StripILBodiesOption };
152
new
("--synthesize-random-mibc");
155
new
("--determinism-stress");
dotnet-format (13)
Commands\FormatCommandCommon.cs (13)
29
internal static readonly Option<bool> FolderOption =
new
("--folder")
33
internal static readonly Option<bool> NoRestoreOption =
new
("--no-restore")
37
internal static readonly Option<string> FrameworkOption = new
Option
<string>("--framework", "-f")
42
internal static readonly Option<bool> VerifyNoChanges =
new
("--verify-no-changes")
46
internal static readonly Option<string[]> DiagnosticsOption =
new
("--diagnostics")
52
internal static readonly Option<string[]> ExcludeDiagnosticsOption =
new
("--exclude-diagnostics")
58
internal static readonly Option<string> SeverityOption = new
Option
<string>("--severity")
62
internal static readonly Option<string[]> IncludeOption =
new
("--include")
68
internal static readonly Option<string[]> ExcludeOption =
new
("--exclude")
74
internal static readonly Option<bool> IncludeGeneratedOption =
new
("--include-generated")
78
internal static readonly Option<string> VerbosityOption = new
Option
<string>("--verbosity", "-v")
82
internal static readonly Option<string> BinarylogOption = new
Option
<string>("--binarylog")
88
internal static readonly Option<string> ReportOption = new
Option
<string>("--report")
dotnet-sourcelink (5)
Program.cs (5)
68
var authArg = new
Option
<string>("--auth", "-a")
74
var authEncodingArg = new
Option
<Encoding>("--auth-encoding", "-e")
80
var userArg = new
Option
<string>("--user", "-u")
86
var passwordArg = new
Option
<string>("--password", "-p")
92
var offlineArg = new
Option
<bool>("--offline")
dotnet-suggest (4)
SuggestionDispatcher.cs (4)
51
var commandPathOption = new
Option
<string>("--command-path") { Description = "The path to the command for which to register suggestions" };
56
new
Option
<string>("--suggestion-command") { Description = "The command to invoke to retrieve suggestions" }
86
var option = new
Option
<FileInfo>("--executable", "-e") { Description = "The executable to call for suggestions" };
94
private Option<int> PositionOption { get; } =
new
("--position", "-p")
dotnet-watch (12)
CommandLine\DotnetWatchCommandDefinition.cs (12)
13
public readonly Option<bool> QuietOption =
new
("--quiet", "-q") { Description = Resources.Help_Quiet, Arity = ArgumentArity.Zero };
14
public readonly Option<bool> VerboseOption =
new
("--verbose") { Description = Resources.Help_Verbose, Arity = ArgumentArity.Zero };
15
public readonly Option<bool> ListOption =
new
("--list") { Description = Resources.Help_List, Arity = ArgumentArity.Zero };
16
public readonly Option<bool> NoHotReloadOption =
new
("--no-hot-reload") { Description = Resources.Help_NoHotReload, Arity = ArgumentArity.Zero };
17
public readonly Option<bool> NonInteractiveOption =
new
("--non-interactive") { Description = Resources.Help_NonInteractive, Arity = ArgumentArity.Zero };
22
public readonly Option<string?> FrameworkOption =
new
(CommonOptions.FrameworkOptionName, "-f")
31
public readonly Option<string?> DeviceOption =
new
("--device")
39
public readonly Option<string> ShortProjectOption =
new
("-p")
46
public readonly Option<string> LongProjectOption =
new
("--project")
54
public readonly Option<string> FileOption =
new
("--file")
62
public readonly Option<string> LaunchProfileOption =
new
("--launch-profile", "-lp")
70
public readonly Option<bool> NoLaunchProfileOption =
new
("--no-launch-profile")
GenerateDocumentationAndConfigFiles (23)
Program.cs (23)
64
var validateOnlyOption = new
Option
<bool>("--validateOnly")
69
var analyzerRulesetsDirOption = new
Option
<string>("--analyzerRulesetsDir")
74
var analyzerEditorConfigsDirOption = new
Option
<string>("--analyzerEditorconfigsDir")
79
var analyzerGlobalConfigsDirOption = new
Option
<string>("--analyzerGlobalconfigsDir")
84
var binDirectoryOption = new
Option
<string>("--binDirectory")
89
var configurationOption = new
Option
<string>("--configuration")
94
var tfmOption = new
Option
<string>("--tfm")
99
var assembliesOption = new
Option
<string>("--assemblies")
104
var propsFileDirOption = new
Option
<string>("--propsFileDir")
109
var propsFileNameOption = new
Option
<string>("--propsFileName")
114
var targetsFileDirOption = new
Option
<string>("--targetsFileDir")
119
var targetsFileNameOption = new
Option
<string>("--targetsFileName")
124
var propsFileToDisableNetAnalyzersInNuGetPackageNameOption = new
Option
<string>("--propsFileToDisableNetAnalyzers")
129
var analyzerDocumentationFileDirOption = new
Option
<string>("--analyzerDocumentationFileDir")
134
var analyzerDocumentationFileNameOption = new
Option
<string>("--analyzerDocumentationFileName")
139
var analyzerSarifFileDirOption = new
Option
<string>("--analyzerSarifFileDir")
144
var analyzerSarifFileNameOption = new
Option
<string>("--analyzerSarifFileName")
149
var analyzerVersionOption = new
Option
<string>("--analyzerVersion")
154
var analyzerPackageNameOption = new
Option
<string>("--analyzerPackageName")
159
var containsPortedFxCopRulesOption = new
Option
<bool>("--containsPortedFxcopRules")
164
var generateAnalyzerRulesMissingDocumentationFileOption = new
Option
<bool>("--generateAnalyzerRulesMissingDocumentationFile")
169
var releaseTrackingOptOutOption = new
Option
<bool>("--releaseTrackingOptOut")
174
var validateOfflineOption = new
Option
<bool>("--validateOffline")
ilasm (34)
IlasmRootCommand.cs (34)
16
new
("--output", "-o") { Description = "Compile to file with specified name (user must provide extension, if any)" };
19
new
("--dll") { Description = "Compile to .dll" };
22
new
("--exe") { Description = "Compile to .exe (default)" };
25
new
("--debug", "-g") { Description = "Disable JIT optimization, create PDB file, use sequence points from PDB" };
28
new
("--debug-mode") { Description = "Debug mode: 'impl' (implicit sequence points) or 'opt' (enable JIT optimization)" };
31
new
("--optimize", "-O") { Description = "Optimize long instructions to short" };
34
new
("--fold") { Description = "Fold identical method bodies into one" };
37
new
("--nologo") { Description = "Don't print the logo" };
40
new
("--quiet", "-q") { Description = "Don't report assembly progress" };
43
new
("--noautoinherit") { Description = "Disable inheriting from System.Object by default" };
46
new
("--pdb") { Description = "Create the PDB file without enabling debug info tracking" };
49
new
("--appcontainer") { Description = "Create an AppContainer exe or dll" };
52
new
("--deterministic", "--det") { Description = "Produce deterministic outputs" };
55
new
("--error", "--err") { Description = "Try to create output file despite errors (results may be invalid)" };
58
new
("--clock") { Description = "Measure and report compilation times" };
61
new
("--key", "-k") { Description = "Compile with strong signature (file contains private key, prefix with @ for key source name)" };
64
new
("--aname") { Description = "Override the name of the compiled assembly" };
67
new
("--include", "-I") { Description = "Set path to search for #include'd files" };
70
new
("--subsystem") { Description = "Set Subsystem value in the NT Optional header" };
73
new
("--ssver") { Description = "Set Subsystem version number in the NT Optional header (format: major.minor)" };
76
new
("--flags") { Description = "Set CLR ImageFlags value in the CLR header" };
79
new
("--alignment") { Description = "Set FileAlignment value in the NT Optional header" };
82
new
("--base") { Description = "Set ImageBase value in the NT Optional header (max 2GB for 32-bit images)" };
85
new
("--stack") { Description = "Set SizeOfStackReserve value in the NT Optional header" };
88
new
("--mdv") { Description = "Set Metadata version string" };
91
new
("--pe64") { Description = "Create a 64bit image (PE32+)" };
94
new
("--highentropyva") { Description = "Set High Entropy Virtual Address capable PE32+ images (default for /APPCONTAINER)" };
98
new
("--nocorstub") { Description = "Suppress generation of CORExeMain stub" };
101
new
("--stripreloc") { Description = "Indicate that no base relocations are needed" };
104
new
("--x64") { Description = "Target processor: 64bit AMD processor" };
107
new
("--arm") { Description = "Target processor: ARM (AArch32) processor" };
110
new
("--arm64") { Description = "Target processor: ARM64 (AArch64) processor" };
113
new
("--32bitpreferred") { Description = "Create a 32BitPreferred image (PE32)" };
116
new
("--waitfordebugger") { Description = "Pause to give opportunity to attach debugger" };
ilc (85)
ILCompilerRootCommand.cs (85)
20
new
("--reference", "-r") { CustomParser = result => Helpers.BuildPathDictionary(result.Tokens, false), DefaultValueFactory = result => Helpers.BuildPathDictionary(result.Tokens, false), Description = "Reference file(s) for compilation" };
22
new
("--out", "-o") { Description = "Output file path" };
24
new
("--optimize", "-O") { Description = "Enable optimizations" };
26
new
("--optimize-space", "--Os") { Description = "Enable optimizations, favor code space" };
28
new
("--optimize-time", "--Ot") { Description = "Enable optimizations, favor code speed" };
30
new
("--mibc", "-m") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Mibc file(s) for profile guided optimization" };
32
new
("--method-layout") { CustomParser = MakeMethodLayoutAlgorithm, DefaultValueFactory = MakeMethodLayoutAlgorithm, Description = "Layout algorithm used by profile-driven optimization for arranging methods in a file.", HelpName = "arg" };
34
new
("--file-layout") { CustomParser = MakeFileLayoutAlgorithm, DefaultValueFactory = MakeFileLayoutAlgorithm, Description = "Layout algorithm used by profile-driven optimization for arranging non-method contents in a file.", HelpName = "arg" };
36
new
("--order") { Description = "File that specifies order of symbols within the generated object file" };
38
new
("--satellite") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Satellite assemblies associated with inputs/references" };
40
new
("--debug", "-g") { Description = "Emit debugging information" };
42
new
("--gdwarf-5") { Description = "Generate source-level debug information with dwarf version 5" };
44
new
("--nativelib") { Description = "Compile as static or shared library" };
46
new
("--splitinit") { Description = "Split initialization of an executable between the library entrypoint and a main entrypoint" };
48
new
("--aggregateexe") { Description = "Specify aggregate executable library entrypoint modules (format: 'assemblyName=MainEntryPointName')" };
50
new
("--exportsfile") { Description = "File to write exported symbol and method definitions" };
52
new
("--export-unmanaged-entrypoints") { Description = "Controls whether the named UnmanagedCallersOnly methods are exported" };
54
new
("--export-dynamic-symbol") { Description = "Add dynamic export symbol to exports file" };
56
new
("--dgmllog") { Description = "Save result of dependency analysis as DGML" };
58
new
("--fulllog") { Description = "Save detailed log of dependency analysis" };
60
new
("--scandgmllog") { Description = "Save result of scanner dependency analysis as DGML" };
62
new
("--scanfulllog") { Description = "Save detailed log of scanner dependency analysis" };
64
new
("--verbose") { Description = "Enable verbose logging" };
66
new
("--systemmodule") { DefaultValueFactory = _ => Helpers.DefaultSystemModule, Description = "System module name (default: System.Private.CoreLib)" };
68
new
("--win32resourcemodule") { Description = "Name of the module from which to copy Win32 resources (Windows target only)" };
70
new
("--multifile") { Description = "Compile only input files (do not compile referenced assemblies)" };
72
new
("--waitfordebugger") { Description = "Pause to give opportunity to attach debugger" };
74
new
("--resilient") { Description = "Ignore unresolved types, methods, and assemblies. Defaults to false" };
76
new
("--codegenopt") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Define a codegen option" };
78
new
("--rdxml") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "RD.XML file(s) for compilation" };
80
new
("--descriptor") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "ILLink.Descriptor file(s) for compilation" };
82
new
("--substitution") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "ILLink.Substitution file(s) for compilation" };
84
new
("--map") { Description = "Generate a map file" };
86
new
("--mstat") { Description = "Generate an mstat file" };
88
new
("--sourcelink") { Description = "Generate a SourceLink file" };
90
new
("--metadatalog") { Description = "Generate a metadata log file" };
92
new
("--completetypemetadata") { Description = "Generate complete metadata for types" };
94
new
("--reflectiondata") { Description = "Reflection data to generate (one of: all, none)" };
96
new
("--scanreflection") { Description = "Scan IL for reflection patterns" };
98
new
("--scan") { Description = "Use IL scanner to generate optimized code (implied by -O)" };
100
new
("--noscan") { Description = "Do not use IL scanner to generate optimized code" };
102
new
("--ildump") { Description = "Dump IL assembly listing for compiler-generated IL" };
104
new
("--noinlinetls") { Description = "Do not generate inline thread local statics" };
106
new
("--stacktracedata") { Description = "Stack trace data to generate (one of: frames, lines, none)" };
108
new
("--methodbodyfolding") { Description = "Fold identical method bodies (one of: none, generic, all" };
110
new
("--initassembly") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Assembly(ies) with a library initializer" };
112
new
("--feature") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Feature switches to apply (format: 'Namespace.Name=[true|false]'" };
114
new
("--runtimeopt") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Runtime options to set" };
116
new
("--runtimeknob") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Runtime knobs to set" };
118
new
("--parallelism") { CustomParser = MakeParallelism, DefaultValueFactory = MakeParallelism, Description = "Maximum number of threads to use during compilation" };
120
new
("--instruction-set") { Description = "Instruction set to allow or disallow" };
122
new
("--max-vectort-bitwidth") { Description = "Maximum width, in bits, that Vector<T> is allowed to be" };
124
new
("--guard") { Description = "Enable mitigations. Options: 'cf': CFG (Control Flow Guard, Windows only)" };
126
new
("--dehydrate") { Description = "Dehydrate runtime data structures" };
128
new
("--preinitstatics") { Description = "Interpret static constructors at compile time if possible (implied by -O)" };
130
new
("--nopreinitstatics") { Description = "Do not interpret static constructors at compile time" };
132
new
("--reachabilityinstrument") { Description = "Instrument code for dynamic reachability" };
134
new
("--reachabilityuse") { Description = "Use dynamic reachability instrumentation data to produce minimal output" };
136
new
("--nowarn") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Disable specific warning messages" };
138
new
("--singlewarn") { Description = "Generate single AOT/trimming warning per assembly" };
140
new
("--notrimwarn") { Description = "Disable warnings related to trimming" };
142
new
("--noaotwarn") { Description = "Disable warnings related to AOT" };
144
new
("--singlewarnassembly") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Generate single AOT/trimming warning for given assembly" };
146
new
("--nosinglewarnassembly") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Expand AOT/trimming warnings for given assembly" };
148
new
("--warnaserror") { Description = "Treat warnings as errors" };
150
new
("--warnaserr") { Description = "Enable treating specific warnings as errors" };
152
new
("--nowarnaserr") { Description = "Disable treating specific warnings as errors" };
154
new
("--directpinvoke") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "PInvoke to call directly" };
156
new
("--directpinvokelist") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "File with list of PInvokes to call directly" };
158
new
("--root") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Fully generate given assembly" };
160
new
("--conditionalroot") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Fully generate given assembly if it's used" };
162
new
("--trim") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Trim the specified assembly" };
164
new
("--defaultrooting") { Description = "Root assemblies that are not marked [IsTrimmable]" };
166
new
("--targetarch") { Description = "Target architecture for cross compilation" };
168
new
("--targetos") { Description = "Target OS for cross compilation" };
170
new
("--jitpath") { Description = "Path to JIT compiler library" };
172
new
("--singlemethodtypename") { Description = "Single method compilation: assembly-qualified name of the owning type" };
174
new
("--singlemethodname") { Description = "Single method compilation: name of the method" };
176
new
("--maxgenericcycle") { DefaultValueFactory = _ => CompilerTypeSystemContext.DefaultGenericCycleDepthCutoff, Description = "Max depth of generic cycle" };
178
new
("--maxgenericcyclebreadth") { DefaultValueFactory = _ => CompilerTypeSystemContext.DefaultGenericCycleBreadthCutoff, Description = "Max breadth of generic cycle expansion" };
180
new
("--singlemethodgenericarg") { Description = "Single method compilation: generic arguments to the method" };
182
new
("--make-repro-path") { Description = "Path where to place a repro package" };
184
new
("--generateunmanagedentrypoints") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Generate unmanaged entrypoints for a given assembly" };
186
new
("--disable-generated-code-heuristics") { Description = "Disable heuristics for detecting compiler-generated code" };
188
new
("--typemap-entry-assembly") { Description = "Assembly name to use as entry point for TypeMap generation" };
Microsoft.DotNet.Cli.Definitions (288)
Commands\Build\BuildCommandDefinition.cs (3)
22
public readonly Option<string> OutputOption = new
Option
<string>("--output", "-o")
28
public readonly Option<bool> NoIncrementalOption = new
Option
<bool>("--no-incremental")
34
public readonly Option<bool> NoDependenciesOption = new
Option
<bool>("--no-dependencies")
Commands\BuildServer\BuildServerShutdownCommandDefinition.cs (3)
10
public readonly Option<bool> MSBuildOption =
new
("--msbuild")
16
public readonly Option<bool> VbcsOption =
new
("--vbcscompiler")
22
public readonly Option<bool> RazorOption =
new
("--razor")
Commands\Clean\CleanCommandDefinition.cs (1)
21
public readonly Option<string> OutputOption = new
Option
<string>("--output", "-o")
Commands\Clean\CleanFileBasedAppArtifactsCommandDefinition.cs (3)
12
public readonly Option<bool> DryRunOption =
new
("--dry-run")
18
public readonly Option<int> DaysOption =
new
("--days")
30
public readonly Option<bool> AutomaticOption =
new
(AutomaticOptionName)
Commands\DotNetCommandDefinition.cs (5)
51
public readonly Option<bool> VersionOption =
new
("--version")
56
public readonly Option<bool> InfoOption =
new
("--info")
61
public readonly Option<bool> CliSchemaOption =
new
("--cli-schema")
69
public readonly Option<bool> ListSdksOption =
new
("--list-sdks")
74
public readonly Option<bool> ListRuntimesOption =
new
("--list-runtimes")
Commands\Hidden\Complete\CompleteCommandDefinition.cs (1)
12
public readonly Option<int?> PositionOption =
new
("--position")
Commands\New\NewCommandDefinition.cs (9)
18
public readonly Option<bool> DisableSdkTemplatesOption = new
Option
<bool>("--debug:disable-sdk-templates")
25
public readonly Option<bool> DisableProjectContextEvaluationOption = new
Option
<bool>(
33
public readonly Option<VerbosityOptions> VerbosityOption =
new
("--verbosity", "-v")
46
public readonly Option<string?> DebugCustomSettingsLocationOption =
new
("--debug:custom-hive")
53
public readonly Option<bool> DebugVirtualizeSettingsOption =
new
("--debug:ephemeral-hive", "--debug:virtual-hive")
60
public readonly Option<bool> DebugAttachOption =
new
("--debug:attach")
67
public readonly Option<bool> DebugReinitOption =
new
("--debug:reinit")
76
public readonly Option<bool> DebugShowConfigOption =
new
("--debug:show-config", "--debug:showconfig")
170
public static Option<bool> CreateDebugRebuildCacheOption() =>
new
("--debug:rebuild-cache", "--debug:rebuildcache")
Commands\New\NewInstallCommandDefinition.cs (1)
59
public static Option<bool> CreatePrereleaseOption() =>
new
("--prerelease")
Commands\New\NewListCommandDefinition.cs (1)
19
public readonly Option<bool> IgnoreConstraintsOption =
new
(IgnoreConstraintsOptionName)
Commands\New\NewSearchCommandDefinition.cs (1)
17
public readonly Option<bool> IgnoreConstraintsOption =
new
("--ignore-constraints")
Commands\New\NewUpdateCommandDefinition.cs (1)
38
=>
new
("--check-only", "--dry-run")
Commands\New\SharedOptionsFactory.cs (16)
15
return new
Option
<bool>(InteractiveOptionName)
26
return
new
(AddSourceOptionName, "--nuget-source")
39
return
new
(ForceOptionName)
50
return
new
(AuthorOptionName)
61
return
new
(BaselineOptionName)
73
return
new
(LanguageOptionName, "-lang")
84
return
new
(TypeOptionName)
95
return
new
(TagOptionName)
106
return
new
(PackageOptionName)
113
public static Option<FileInfo> CreateOutputOption() =>
new
("--output", "-o")
124
return
new
(ColumnsAllOptionName)
135
Option<string[]> option =
new
(ColumnsOptionName)
162
public static Option<string> CreateNameOption() =>
new
(NameOptionName, "-n")
170
public static Option<bool> CreateDryRunOption() =>
new
(DryRunOptionName)
178
public static Option<bool> CreateNoUpdateCheckOption() =>
new
(NoUpdateCheckOptionName)
186
public static Option<FileInfo> CreateProjectOption() => new
Option
<FileInfo>(ProjectOptionName)
Commands\NuGet\NuGetCommandDefinition.cs (39)
14
public readonly Option<bool> VersionOption =
new
("--version")
19
public readonly Option<string> VerbosityOption =
new
("--verbosity", "-v");
57
public readonly Option<bool> ForceEnglishOption =
new
("--force-english-output")
62
public readonly Option<string> SourceOption =
new
("--source", "-s");
64
public readonly Option<bool> NonInteractiveOption =
new
("--non-interactive")
69
public readonly Option<string> ApiKeyOption =
new
("--api-key", "-k");
71
public readonly Option<bool> NoServiceEndpointOption =
new
("--no-service-endpoint")
96
public readonly Option<bool> ForceEnglishOption =
new
("--force-english-output")
101
public readonly Option<bool> ClearOption =
new
("--clear", "-c")
106
public readonly Option<bool> ListOption =
new
("--list", "-l")
132
public readonly Option<bool> ForceEnglishOption =
new
("--force-english-output")
137
public readonly Option<string> SourceOption =
new
("--source", "-s");
139
public readonly Option<string> SymbolSourceOption =
new
("--symbol-source", "-ss");
141
public readonly Option<string> TimeoutOption =
new
("--timeout", "-t");
143
public readonly Option<string> ApiKeyOption =
new
("--api-key", "-k");
145
public readonly Option<string> SymbolApiKeyOption =
new
("--symbol-api-key", "-sk");
147
public readonly Option<bool> DisableBufferingOption =
new
("--disable-buffering", "-d")
152
public readonly Option<bool> NoSymbolsOption =
new
("--no-symbols", "-n")
157
public readonly Option<bool> NoServiceEndpointOption =
new
("--no-service-endpoint")
164
public readonly Option<bool> SkipDuplicateOption =
new
("--skip-duplicate")
169
public readonly Option<string> ConfigFileOption =
new
("--configfile");
200
public readonly Option<bool> AllOption =
new
("--all")
205
public readonly Option<IEnumerable<string>> CertificateFingerprintOption = new
Option
<IEnumerable<string>>(CertificateFingerprintOptionName)
224
public readonly Option<bool> AllowUntrustedRootOption =
new
("--allow-untrusted-root")
229
public readonly Option<string> OwnersOption =
new
("--owners");
231
public readonly Option<string> ConfigFileOption =
new
("--configfile");
303
public readonly Option<string> SourceUrlOption =
new
("--source-url");
319
public readonly Option<string> AlgorithmOption = new
Option
<string>("--algorithm")
363
public readonly Option<string> OutputOption =
new
("--output", "-o");
364
public readonly Option<string> CertificatePathOption =
new
("--certificate-path");
365
public readonly Option<string> CertificateStoreNameOption =
new
("--certificate-store-name");
366
public readonly Option<string> CertificateStoreLocationOption =
new
("--certificate-store-location");
367
public readonly Option<string> CertificateSubjectNameOption =
new
("--certificate-subject-name");
368
public readonly Option<string> CertificateFingerprintOption =
new
("--certificate-fingerprint");
369
public readonly Option<string> CertificatePasswordOption =
new
("--certificate-password");
370
public readonly Option<string> HashAlgorithmOption =
new
("--hash-algorithm");
371
public readonly Option<string> TimestamperOption =
new
("--timestamper");
372
public readonly Option<string> TimestampHashAlgorithmOption =
new
("--timestamp-hash-algorithm");
374
public readonly Option<bool> OverwriteOption =
new
("--overwrite")
Commands\Pack\PackCommandDefinition.cs (6)
24
public readonly Option<string> OutputOption = new
Option
<string>("--output", "-o")
30
public readonly Option<bool> NoBuildOption = new
Option
<bool>("--no-build")
36
public readonly Option<bool> IncludeSymbolsOption = new
Option
<bool>("--include-symbols")
42
public readonly Option<bool> IncludeSourceOption = new
Option
<bool>("--include-source")
48
public readonly Option<bool> ServiceableOption = new
Option
<bool>("--serviceable", "-s")
75
public readonly Option<NuGetVersion> VersionOption = new
Option
<NuGetVersion>("--version")
Commands\Package\PackageAddCommandDefinition.cs (6)
20
public static Option<string> CreateVersionOption() => new
Option
<string>("--version", "-v")
27
public static Option<bool> CreatePrereleaseOption() => new
Option
<bool>("--prerelease")
33
public static Option<string> CreateFrameworkOption() => new
Option
<string>("--framework", "-f")
39
public static Option<bool> CreateNoRestoreOption() =>
new
("--no-restore", "-n")
45
public static Option<string> CreateSourceOption() => new
Option
<string>("--source", "-s")
51
public static Option<string> CreatePackageDirOption() => new
Option
<string>("--package-directory")
Commands\Package\PackageCommandDefinition.cs (2)
19
public static Option<string?> CreateProjectOption() =>
new
("--project")
25
public static Option<string?> CreateFileOption() =>
new
("--file")
Commands\Package\PackageListCommandDefinition.cs (14)
19
public readonly Option OutdatedOption = new
Option
<bool>("--outdated")
25
public readonly Option DeprecatedOption = new
Option
<bool>("--deprecated")
31
public readonly Option VulnerableOption = new
Option
<bool>("--vulnerable")
37
public readonly Option FrameworkOption = new
Option
<IEnumerable<string>>("--framework", "-f")
44
public readonly Option TransitiveOption = new
Option
<bool>("--include-transitive")
50
public readonly Option PrereleaseOption = new
Option
<bool>("--include-prerelease")
56
public readonly Option HighestPatchOption = new
Option
<bool>("--highest-patch")
62
public readonly Option HighestMinorOption = new
Option
<bool>("--highest-minor")
68
public readonly Option ConfigOption = new
Option
<string>("--config", "--configfile")
74
public readonly Option SourceOption = new
Option
<IEnumerable<string>>("--source", "-s")
83
public readonly Option NoRestore = new
Option
<bool>("--no-restore")
89
public readonly Option VerbosityOption = new
Option
<Utils.VerbosityOptions>("--verbosity", "-v")
95
public readonly Option<ReportOutputFormat> FormatOption = new
Option
<ReportOutputFormat>("--format")
100
public readonly Option OutputVersionOption = new
Option
<int>("--output-version")
Commands\Package\PackageSearchCommandDefinition.cs (8)
20
public readonly Option<IEnumerable<string>> Sources = new
Option
<IEnumerable<string>>("--source")
27
public readonly Option<string> Take = new
Option
<string>("--take")
33
public readonly Option<string> Skip = new
Option
<string>("--skip")
39
public readonly Option<bool> ExactMatch = new
Option
<bool>("--exact-match")
47
public readonly Option<bool> Prerelease = new
Option
<bool>("--prerelease")
53
public readonly Option<string> ConfigFile = new
Option
<string>("--configfile")
59
public readonly Option<string> Format = new
Option
<string>("--format")
65
public readonly Option<string> Verbosity = new
Option
<string>("--verbosity")
Commands\Project\ProjectConvertCommandDefinition.cs (4)
16
public readonly Option<FileInfo> OutputOption =
new
("--output", "-o")
23
public readonly Option<bool> ForceOption =
new
("--force")
31
public readonly Option<bool> DryRunOption =
new
("--dry-run")
37
public readonly Option<bool> DeleteSourceOption =
new
("--delete-source")
Commands\Publish\PublishCommandDefinition.cs (3)
22
public readonly Option<string> OutputOption = new
Option
<string>("--output", "-o")
28
public readonly Option<IEnumerable<string>> ManifestOption = new
Option
<IEnumerable<string>>("--manifest")
35
public readonly Option<bool> NoBuildOption = new
Option
<bool>("--no-build")
Commands\Reference\ReferenceAddCommandDefinition.cs (1)
44
public readonly Option<string> FrameworkOption =
new
("--framework", "-f")
Commands\Reference\ReferenceCommandDefinition.cs (2)
17
public static Option<string?> CreateProjectOption() =>
new
("--project")
23
public static Option<string?> CreateFileOption() =>
new
("--file")
Commands\Reference\ReferenceRemoveCommandDefinition.cs (1)
37
public static Option<string> CreateFrameworkOption() =>
new
("--framework", "-f")
Commands\Restore\RestoreCommandDefinition.cs (6)
34
public readonly Option<bool> UseLockFileOption = new
Option
<bool>("--use-lock-file")
40
public readonly Option<bool> LockedModeOption = new
Option
<bool>("--locked-mode")
46
public readonly Option<string> LockFilePathOption = new
Option
<string>("--lock-file-path")
52
public readonly Option<bool> ForceEvaluateOption = new
Option
<bool>("--force-evaluate")
115
private static Option<IEnumerable<string>> CreateRuntimeOption() => new
Option
<IEnumerable<string>>("--runtime", "-r")
124
=> new
Option
<bool>("--no-dependencies")
Commands\Run\RunCommandDefinition.cs (9)
20
public readonly Option<string> ProjectOption =
new
("--project")
26
public readonly Option<string> FileOption =
new
("--file")
34
public readonly Option<string> LaunchProfileOption =
new
("--launch-profile", "-lp")
40
public readonly Option<bool> NoLaunchProfileOption =
new
("--no-launch-profile")
46
public readonly Option<bool> NoLaunchProfileArgumentsOption =
new
("--no-launch-profile-arguments")
51
public readonly Option<string> DeviceOption =
new
("--device")
57
public readonly Option<bool> ListDevicesOption =
new
("--list-devices")
65
public readonly Option<bool> NoBuildOption =
new
(NoBuildOptionName)
77
public readonly Option<bool> NoCacheOption =
new
(NoCacheOptionName)
Commands\Solution\SolutionAddCommandDefinition.cs (3)
19
public readonly Option<bool> InRootOption =
new
(InRootOptionName)
26
public readonly Option<string> SolutionFolderOption =
new
(SolutionFolderOptionName, "-s")
31
public readonly Option<bool> IncludeReferencesOption =
new
("--include-references")
Commands\Solution\SolutionListCommandDefinition.cs (1)
10
public readonly Option<bool> SolutionFolderOption =
new
("--solution-folders")
Commands\Test\TestCommandDefinition.MicrosoftTestingPlatform.cs (25)
21
public readonly Option<string> ProjectOrSolutionOption =
new
("--project")
28
public readonly Option<string> SolutionOption =
new
("--solution")
35
public readonly Option<string> TestModulesFilterOption =
new
("--test-modules")
41
public readonly Option<string> TestModulesRootDirectoryOption =
new
("--root-directory")
49
public readonly Option<string> ResultsDirectoryOption =
new
(ResultsDirectoryOptionName)
56
public readonly Option<string> ResultsDirectoryLayoutOption = new
Option
<string>("--results-directory-layout")
65
public readonly Option<string> ConfigFileOption =
new
(ConfigFileOptionName)
74
public readonly Option<string> DiagnosticOutputDirectoryOption =
new
(DiagnosticOutputDirectoryOptionName)
81
public readonly Option<int> MaxParallelTestModulesOption =
new
("--max-parallel-test-modules")
87
public readonly Option<int> MinimumExpectedTestsOption =
new
("--minimum-expected-tests")
93
public readonly Option<int?> MaximumFailedTestsOption =
new
("--maximum-failed-tests")
100
public readonly Option<TimeSpan?> TimeoutOption =
new
("--timeout")
114
public readonly Option<bool> NoBuildOption =
new
("--no-build")
126
public readonly Option<bool> NoDependenciesOption = new
Option
<bool>("--no-dependencies")
132
public readonly Option<bool> NoAnsiOption =
new
("--no-ansi")
138
public readonly Option<bool> NoProgressOption =
new
("--no-progress")
144
public readonly Option<bool> NoArtifactPostProcessingOption =
new
("--no-artifact-post-processing")
150
public readonly Option<OutputOptions> OutputOption =
new
("--output")
162
public readonly Option<string> ListTestsOption = new
Option
<string>(ListTestsOptionName)
169
public readonly Option<bool> NoLaunchProfileOption =
new
("--no-launch-profile")
175
public readonly Option<bool> NoLaunchProfileArgumentsOption =
new
("--no-launch-profile-arguments")
180
public readonly Option<string> DeviceOption =
new
("--device")
186
public readonly Option<bool> ListDevicesOption =
new
("--list-devices")
222
CollectTestMapOption =
new
(CollectTestMapOptionName)
229
AffectedTestsOption =
new
(AffectedTestsOptionName)
Commands\Test\TestCommandDefinition.VSTest.cs (18)
14
public readonly Option<string> SettingsOption = new
Option
<string>("--settings", "-s")
20
public readonly Option<bool> ListTestsOption = new
Option
<bool>("--list-tests", "-t")
28
public readonly Option<string> FilterOption = new
Option
<string>("--filter")
34
public readonly Option<IEnumerable<string>> AdapterOption = new
Option
<IEnumerable<string>>("--test-adapter-path")
41
public readonly Option<IEnumerable<string>> LoggerOption = new
Option
<IEnumerable<string>>("--logger", "-l")
52
public readonly Option<string> OutputOption = new
Option
<string>("--output", "-o")
61
public readonly Option<string> DiagOption = new
Option
<string>("--diag", "-d")
68
public readonly Option<bool> NoBuildOption = new
Option
<bool>("--no-build")
74
public readonly Option<bool> NoDependenciesOption = new
Option
<bool>("--no-dependencies")
80
public readonly Option<string> ResultsOption = new
Option
<string>("--results-directory")
86
public readonly Option<IEnumerable<string>> CollectOption = new
Option
<IEnumerable<string>>("--collect")
93
public readonly Option<bool> BlameOption = new
Option
<bool>("--blame")
99
public readonly Option<bool> BlameCrashOption = new
Option
<bool>("--blame-crash")
107
public readonly Option<bool> BlameCrashAlwaysOption = new
Option
<bool>("--blame-crash-collect-always")
113
public readonly Option<bool> BlameHangOption = new
Option
<bool>("--blame-hang")
121
public readonly Option<string> BlameHangTimeoutOption = new
Option
<string>("--blame-hang-timeout")
141
Option<string> result = new
Option
<string>("--blame-crash-dump-type")
153
Option<string> result = new
Option
<string>("--blame-hang-dump-type")
Commands\Tool\StoreCommandDefinition.cs (6)
18
public readonly Option<IEnumerable<string>> ManifestOption = new
Option
<IEnumerable<string>>("--manifest", "-m")
39
public readonly Option<string> FrameworkVersionOption = new
Option
<string>("--framework-version")
45
public readonly Option<string> OutputOption = new
Option
<string>("--output", "-o")
51
public readonly Option<string> WorkingDirOption = new
Option
<string>("--working-dir", "-w")
57
public readonly Option<bool> SkipOptimizationOption = new
Option
<bool>("--skip-optimization")
63
public readonly Option<bool> SkipSymbolsOption = new
Option
<bool>("--skip-symbols")
Commands\Tool\ToolAppliedOption.cs (12)
11
public static Option<bool> CreateGlobalOption(string description) =>
new
("--global", "-g")
17
public static Option<bool> CreateLocalOption(string description) =>
new
("--local")
23
public static Option<bool> CreateUpdateAllOption() =>
new
("--all")
29
public static Option<string> CreateVersionOption() =>
new
("--version")
35
public static Option<string> CreateToolPathOption(string description) =>
new
("--tool-path")
41
public static Option<string> CreateToolManifestOption(string description) =>
new
("--tool-manifest")
48
public static Option<bool> CreatePrereleaseOption() =>
new
("--prerelease")
54
public static Option<bool> CreateRollForwardOption() =>
new
("--allow-roll-forward")
60
public static Option<string> CreateConfigOption() =>
new
("--configfile")
66
public static Option<string[]> CreateSourceOption() => new
Option
<string[]>("--source")
72
public static Option<string[]> CreateAddSourceOption() => new
Option
<string[]>("--add-source")
78
public static Option<bool> CreateAllowPackageDowngradeOption() =>
new
("--allow-downgrade")
Commands\Tool\ToolInstallCommandDefinition.cs (2)
12
public readonly Option<bool> CreateManifestIfNeededOption =
new
("--create-manifest-if-needed")
20
public readonly Option<string> ArchitectureOption =
new
("--arch", "-a")
Commands\Tool\ToolListCommandDefinition.cs (1)
22
public readonly Option<ToolListOutputFormat> ToolListFormatOption =
new
("--format")
Commands\Tool\ToolRunCommandDefinition.cs (1)
23
public readonly Option<bool> RollForwardOption =
new
("--allow-roll-forward")
Commands\Tool\ToolSearchCommandDefinition.cs (3)
16
public readonly Option<bool> DetailOption =
new
("--detail")
22
public readonly Option<string> SkipOption =
new
("--skip")
28
public readonly Option<string> TakeOption =
new
("--take")
Commands\Tool\ToolUpdateInstallCommandDefinition.cs (1)
25
public readonly Option<string> FrameworkOption =
new
("--framework")
Commands\VSTest\VSTestCommandDefinition.cs (3)
15
public readonly Option<string> TestPlatformOption =
new
(TestPlatformOptionName);
19
public readonly Option<string> TestFrameworkOption =
new
(TestFrameworkOptionName);
23
public readonly Option<string[]> TestLoggerOption =
new
(TestLoggerOptionName);
Commands\Workload\InstallingWorkloadCommandDefinition.cs (6)
16
public readonly Option<IEnumerable<string>> WorkloadSetVersionOption =
new
("--version")
22
public readonly Option<bool> PrintDownloadLinkOnlyOption =
new
("--print-download-link-only")
28
public readonly Option<string> FromCacheOption =
new
("--from-cache")
35
public readonly Option<bool> IncludePreviewOption =
new
("--include-previews")
40
public readonly Option<string> DownloadToCacheOption =
new
("--download-to-cache")
47
public readonly Option<string> FromRollbackFileOption =
new
("--from-rollback-file")
Commands\Workload\WorkloadCleanCommandDefinition.cs (1)
10
public readonly Option<bool> CleanAllOption =
new
("--all")
Commands\Workload\WorkloadCommandDefinition.cs (2)
26
public Option<bool> InfoOption =
new
("--info")
32
public readonly Option<bool> VersionOption =
new
("--version")
Commands\Workload\WorkloadCommandDefinitionBase.cs (6)
17
public static Option<string> CreateSdkVersionOption() =>
new
("--sdk-version")
31
public static Option<string> CreateConfigOption() =>
new
("--configfile")
37
public static Option<string[]> CreateSourceOption() => new
Option
<string[]>("--source", "-s")
43
public static Option<bool> CreateSkipSignCheckOption() =>
new
("--skip-sign-check")
50
public static Option<string> CreateTempDirOption() =>
new
("--temp-dir")
57
public static Option<bool> CreateSkipManifestUpdateOption() =>
new
(SkipManifestUpdateOptionName)
Commands\Workload\WorkloadConfigCommandDefinition.cs (1)
17
public readonly Option<string> UpdateMode =
new
("--update-mode")
Commands\Workload\WorkloadElevateCommandDefinition.cs (1)
16
public readonly Option<string> ClientTempOption =
new
("--client-temp")
Commands\Workload\WorkloadListCommandDefinition.cs (2)
12
public readonly Option<bool> MachineReadableOption =
new
("--machine-readable")
22
public readonly Option<bool> IncludePreviewsOption = new
Option
<bool>("--include-previews")
Commands\Workload\WorkloadSearchVersionsCommandDefinition.cs (3)
16
public readonly Option<int> TakeOption =
new
("--take")
21
public readonly Option<string> FormatOption =
new
("--format")
26
public readonly Option<bool> IncludePreviewsOption =
new
("--include-previews");
Commands\Workload\WorkloadUpdateCommandDefinition.cs (5)
12
public readonly Option<bool> FromPreviousSdkOption =
new
("--from-previous-sdk")
17
public readonly Option<bool> AdManifestOnlyOption =
new
("--advertising-manifests-only")
23
public readonly Option<bool> PrintRollbackOption =
new
("--print-rollback")
29
public readonly Option<int> FromHistoryOption =
new
(FromHistoryOptionName)
34
public readonly Option<string> HistoryManifestOnlyOption =
new
("--manifests-only")
Common\CommonOptions.cs (24)
15
public static Option<bool> CreateYesOption(bool hidden = false) =>
new
("--yes", "-y")
25
new
Option
<ReadOnlyDictionary<string, string>?>("--property", "-property", "/property", "/p", "-p", "--p")
40
new
Option
<ReadOnlyDictionary<string, string>?>("--restoreProperty", "-restoreProperty", "/restoreProperty", "-rp", "--rp", "/rp")
69
new
Option
<string[]?>("--target", "/target", "-target", "-t", "--t", "/t")
82
new
Option
<string[]>("--target", "/target", "-target", "-t", "--t", "/t")
118
=> new
Option
<string[]?>($"--{name}", $"-{name}", $"/{name}")
142
new
Option
<VerbosityOptions>("--verbosity", "-v")
152
new
Option
<VerbosityOptions?>("--verbosity", "-v", "--v", "-verbosity", "/v", "/verbosity")
161
new
Option
<VerbosityOptions>("--verbosity", "-v", "--v", "-verbosity", "/v", "/verbosity")
173
new
Option
<string>(FrameworkOptionName, "-f")
182
new
Option
<string>(
191
new
Option
<bool>("--use-current-runtime", "--ucr")
200
new
Option
<string?>(ConfigurationOptionName, "-c")
213
new
Option
<string>("--version-suffix")
229
public static Option<bool> CreateNoRestoreOption() => new
Option
<bool>("--no-restore")
235
public static Option<bool> RestoreOption = new
Option
<bool>("--restore", "-restore")
257
new
(InteractiveOptionName)
271
new
Option
<bool>("--disable-build-servers")
278
public static Option<bool> DebugOption =
new
("--debug")
284
new
Option
<bool>("--self-contained", "--sc")
293
new
Option
<bool>("--no-self-contained")
300
public static Option<IReadOnlyDictionary<string, string>> CreateEnvOption(string? description = null) =>
new
("--environment", "-e")
359
Option<bool> option =
new
("--no-logo", "--nologo", "-nologo", "/nologo")
381
public static Option<bool> CreateDiagnosticsOption(bool recursive) =>
new
("--diagnostics", "-d")
Common\ImplicitRestoreOptions.cs (8)
28
PackagesOption = new
Option
<string>("--packages")
37
DisableParallelOption = new
Option
<bool>("--disable-parallel")
44
ConfigFileOption = new
Option
<string>("--configfile")
51
NoCacheOption = new
Option
<bool>("--no-cache")
58
NoHttpCacheOption = new
Option
<bool>("--no-http-cache")
65
IgnoreFailedSourcesOption = new
Option
<bool>("--ignore-failed-sources")
72
ForceOption = new
Option
<bool>("--force")
89
var option = new
Option
<IEnumerable<string>>("--source")
Common\NuGetRestoreOptions.cs (4)
11
public readonly Option<bool> DisableParallelOption = ForwardWhen<bool>(
new
("--disable-parallel")
18
public readonly Option<bool> NoCacheOption = ForwardWhen<bool>(
new
("--no-cache")
25
public readonly Option<bool> NoHttpCacheOption = ForwardWhen<bool>(
new
("--no-http-cache")
32
public readonly Option<bool> IgnoreFailedSourcesOption = ForwardWhen<bool>(
new
("--ignore-failed-sources")
Common\TargetPlatformOptions.cs (3)
17
public readonly Option<string> ArchitectureOption =
new
("--arch", "-a")
23
public readonly Option<string> OperatingSystemOption =
new
("--os")
58
new
Option
<string>(RuntimeOptionName, "-r")
Microsoft.DotNet.VersionTools.Cli (3)
Program.cs (3)
22
Option<string> assetsDirectoryOption =
new
("--assets-path", "-d")
28
Option<string> searchPatternOption =
new
("--search-pattern", "-s")
34
Option<bool> recursiveOption =
new
("--recursive", "-r")
Microsoft.NET.Sdk.BlazorWebAssembly.Tool (3)
Program.cs (3)
18
Option<CompressionLevel> compressionLevelOption =
new
("-c")
23
Option<List<string>> sourcesOption =
new
("-s")
28
Option<List<string>> outputsOption =
new
("-o")
Microsoft.NET.Sdk.StaticWebAssets.Tool (3)
Program.cs (3)
18
Option<CompressionLevel> compressionLevelOption =
new
("-c")
23
Option<List<string>> sourcesOption =
new
("-s")
28
Option<List<string>> outputsOption =
new
("-o")
Microsoft.TemplateEngine.Cli (7)
ChoiceTemplateParameter.cs (1)
75
Option<string> option =
new
(name)
CliTemplateParameter.cs (5)
211
ParameterType.Boolean => new
Option
<bool>(name)
215
ParameterType.Integer => new
Option
<long>(name)
220
ParameterType.String => new
Option
<string>(name)
225
ParameterType.Float => new
Option
<double>(name)
230
ParameterType.Hex => new
Option
<long>(name)
Commands\create\TemplateCommand.cs (1)
109
AllowScriptsOption = new
Option
<AllowRunScripts>("--allow-scripts")
NuGet.CommandLine.XPlat (148)
Commands\CommonOptions.cs (1)
16
var verbosityOption = new
Option
<VerbosityEnum?>("--verbosity", "-v")
Commands\ConfigCommands\ConfigCommand.cs (5)
77
var workingDirectory = new
Option
<string>(name: "--working-directory")
105
var workingDirectory = new
Option
<string>(name: "--working-directory")
111
var showPathOption = new
Option
<bool>(name: "--show-path")
150
var configFileOption = new
Option
<string>(name: "--configfile")
182
var configFileOption = new
Option
<string>(name: "--configfile")
Commands\DeleteCommand.cs (5)
21
var sourceOption = new
Option
<string>("--source", "-s")
27
var nonInteractiveOption = new
Option
<bool>("--non-interactive")
33
var apiKeyOption = new
Option
<string>("--api-key", "-k")
39
var noServiceEndpointOption = new
Option
<bool>("--no-service-endpoint")
45
var interactiveOption = new
Option
<bool>("--interactive")
Commands\LocalsCommand.cs (2)
21
var clearOption = new
Option
<bool>("--clear", "-c")
27
var listOption = new
Option
<bool>("--list", "-l")
Commands\NuGet\Add\DotnetNuGetAddCommand.cs (18)
28
var name = new
Option
<string>("--name", "-n") { Description = Strings.SourcesCommandNameDescription };
29
var username = new
Option
<string>("--username", "-u") { Description = Strings.SourcesCommandUsernameDescription };
30
var password = new
Option
<string>("--password", "-p") { Description = Strings.SourcesCommandPasswordDescription };
31
var storePasswordInClearText = new
Option
<bool>("--store-password-in-clear-text") { Description = Strings.SourcesCommandStorePasswordInClearTextDescription };
32
var validAuthenticationTypes = new
Option
<string>("--valid-authentication-types") { Description = Strings.SourcesCommandValidAuthenticationTypesDescription };
33
var protocolVersion = new
Option
<string>("--protocol-version") { Description = Strings.SourcesCommandProtocolVersionDescription };
34
var configfile = new
Option
<string>("--configfile") { Description = Strings.Option_ConfigFile };
35
var allowInsecureConnections = new
Option
<bool>("--allow-insecure-connections") { Description = Strings.SourcesCommandAllowInsecureConnectionsDescription };
73
var packagesource = new
Option
<string>("--package-source", "-s") { Description = Strings.Option_PackageSource };
74
var path = new
Option
<string>("--path") { Description = Strings.Option_Path };
75
var password = new
Option
<string>("--password") { Description = Strings.Option_Password };
76
var storePasswordInClearText = new
Option
<bool>("--store-password-in-clear-text") { Description = Strings.Option_StorePasswordInClearText };
77
var storeLocation = new
Option
<string>("--store-location") { Description = Strings.Option_StoreLocation };
78
var storeName = new
Option
<string>("--store-name") { Description = Strings.Option_StoreName };
79
var findBy = new
Option
<string>("--find-by") { Description = Strings.Option_FindBy };
80
var findValue = new
Option
<string>("--find-value") { Description = Strings.Option_FindValue };
81
var force = new
Option
<bool>("--force", "-f") { Description = Strings.Option_Force };
82
var configfile = new
Option
<string>("--configfile") { Description = Strings.Option_ConfigFile };
Commands\NuGet\Disable\DotnetNuGetDisableCommand.cs (1)
20
var configfile = new
Option
<string>("--configfile") { Description = Strings.Option_ConfigFile };
Commands\NuGet\Enable\DotnetNuGetEnableCommand.cs (1)
20
var configfile = new
Option
<string>("--configfile") { Description = Strings.Option_ConfigFile };
Commands\NuGet\List\DotnetNuGetListCommand.cs (3)
27
var format = new
Option
<string>("--format") { Description = Strings.SourcesCommandFormatDescription };
28
var configfile = new
Option
<string>("--configfile") { Description = Strings.Option_ConfigFile };
52
var configfile = new
Option
<string>("--configfile") { Description = Strings.Option_ConfigFile };
Commands\NuGet\Remove\DotnetNuGetRemoveCommand.cs (3)
28
var configfile = new
Option
<string>("--configfile") { Description = Strings.Option_ConfigFile };
52
var packagesource = new
Option
<string>("--package-source", "-s") { Description = Strings.Option_PackageSource };
53
var configfile = new
Option
<string>("--configfile") { Description = Strings.Option_ConfigFile };
Commands\NuGet\Update\DotnetNuGetUpdateCommand.cs (18)
28
var source = new
Option
<string>("--source", "-s") { Description = Strings.SourcesCommandSourceDescription };
29
var username = new
Option
<string>("--username", "-u") { Description = Strings.SourcesCommandUsernameDescription };
30
var password = new
Option
<string>("--password", "-p") { Description = Strings.SourcesCommandPasswordDescription };
31
var storePasswordInClearText = new
Option
<bool>("--store-password-in-clear-text") { Description = Strings.SourcesCommandStorePasswordInClearTextDescription };
32
var validAuthenticationTypes = new
Option
<string>("--valid-authentication-types") { Description = Strings.SourcesCommandValidAuthenticationTypesDescription };
33
var protocolVersion = new
Option
<string>("--protocol-version") { Description = Strings.SourcesCommandProtocolVersionDescription };
34
var configfile = new
Option
<string>("--configfile") { Description = Strings.Option_ConfigFile };
35
var allowInsecureConnections = new
Option
<bool>("--allow-insecure-connections") { Description = Strings.SourcesCommandAllowInsecureConnectionsDescription };
73
var packagesource = new
Option
<string>("--package-source", "-s") { Description = Strings.Option_PackageSource };
74
var path = new
Option
<string>("--path") { Description = Strings.Option_Path };
75
var password = new
Option
<string>("--password") { Description = Strings.Option_Password };
76
var storePasswordInClearText = new
Option
<bool>("--store-password-in-clear-text") { Description = Strings.Option_StorePasswordInClearText };
77
var storeLocation = new
Option
<string>("--store-location") { Description = Strings.Option_StoreLocation };
78
var storeName = new
Option
<string>("--store-name") { Description = Strings.Option_StoreName };
79
var findBy = new
Option
<string>("--find-by") { Description = Strings.Option_FindBy };
80
var findValue = new
Option
<string>("--find-value") { Description = Strings.Option_FindValue };
81
var force = new
Option
<bool>("--force", "-f") { Description = Strings.Option_Force };
82
var configfile = new
Option
<string>("--configfile") { Description = Strings.Option_ConfigFile };
Commands\Package\Download\PackageDownloadCommand.cs (5)
37
var allowInsecureConnections = new
Option
<bool>("--allow-insecure-connections")
43
var configFile = new
Option
<string>("--configfile")
49
var outputDirectory = new
Option
<string>("--output", "-o")
55
var prerelease = new
Option
<bool>("--prerelease")
61
var sources = new
Option
<List<string>>("--source", "-s")
Commands\Package\Update\PackageUpdateCommand.cs (2)
35
var projectOption = new
Option
<FileSystemInfo>("--project", "--file").AcceptExistingOnly();
39
var vulnerableOption = new
Option
<bool>("--vulnerable");
Commands\PackageReferenceCommands\AddPackageReferenceCommand.cs (10)
23
var id = new
Option
<string>("--package")
29
var version = new
Option
<string>("--version")
35
var dgFilePath = new
Option
<string>("--dg-file", "-d")
41
var projectPath = new
Option
<string>("--project", "-p")
47
var frameworks = new
Option
<string[]>("--framework", "-f")
53
var noRestore = new
Option
<bool>("--no-restore", "-n")
59
var sources = new
Option
<string[]>("--source", "-s")
65
var packageDirectory = new
Option
<string>("--package-directory")
71
var interactive = new
Option
<bool>("--interactive")
77
var prerelease = new
Option
<bool>("--prerelease")
Commands\PackageReferenceCommands\ListPackage\ListPackageCommand.cs (14)
46
var framework = new
Option
<string[]>("--framework")
52
var deprecatedReport = new
Option
<bool>("--deprecated")
58
var outdatedReport = new
Option
<bool>("--outdated")
64
var vulnerableReport = new
Option
<bool>("--vulnerable")
70
var includeTransitive = new
Option
<bool>("--include-transitive")
76
var prerelease = new
Option
<bool>("--include-prerelease")
82
var highestPatch = new
Option
<bool>("--highest-patch")
88
var highestMinor = new
Option
<bool>("--highest-minor")
94
var source = new
Option
<string[]>("--source")
100
var config = new
Option
<string>("--config")
106
var outputFormat = new
Option
<string>("--format")
112
var outputVersion = new
Option
<string>("--output-version")
118
var interactive = new
Option
<bool>("--interactive")
124
var verbosity = new
Option
<string>("--verbosity", "-v")
Commands\PackageReferenceCommands\RemovePackageReferenceCommand.cs (3)
22
var id = new
Option
<string>("--package")
28
var projectPath = new
Option
<string>("--project", "-p")
34
var interactive = new
Option
<bool>("--interactive")
Commands\PackageSearch\PackageSearchCommand.cs (9)
35
var sources = new
Option
<List<string>>("--source")
41
var exactMatch = new
Option
<bool>("--exact-match")
47
var prerelease = new
Option
<bool>("--prerelease")
53
var interactive = new
Option
<bool>("--interactive")
59
var take = new
Option
<string>("--take")
65
var skip = new
Option
<string>("--skip")
71
var format = new
Option
<string>("--format")
77
var verbosity = new
Option
<string>("--verbosity")
83
var configFile = new
Option
<string>("--configfile")
Commands\PushCommand.cs (12)
21
var sourceOption = new
Option
<string>("--source", "-s")
27
var allowInsecureConnectionsOption = new
Option
<bool>("--allow-insecure-connections")
33
var symbolSourceOption = new
Option
<string>("--symbol-source", "-ss")
39
var timeoutOption = new
Option
<string>("--timeout", "-t")
45
var apiKeyOption = new
Option
<string>("--api-key", "-k")
51
var symbolApiKeyOption = new
Option
<string>("--symbol-api-key", "-sk")
57
var disableBufferingOption = new
Option
<bool>("--disable-buffering", "-d")
63
var noSymbolsOption = new
Option
<bool>("--no-symbols", "-n")
69
var noServiceEndpointOption = new
Option
<bool>("--no-service-endpoint")
75
var interactiveOption = new
Option
<bool>("--interactive")
81
var skipDuplicateOption = new
Option
<bool>("--skip-duplicate")
87
var configFileOption = new
Option
<string>("--configfile")
Commands\Signing\SignCommand.cs (13)
37
var outputDirectory = new
Option
<string>("--output", "-o")
43
var path = new
Option
<string>("--certificate-path")
49
var store = new
Option
<string>("--certificate-store-name")
55
var location = new
Option
<string>("--certificate-store-location")
61
var subject = new
Option
<string>("--certificate-subject-name")
67
var fingerprint = new
Option
<string>("--certificate-fingerprint")
73
var password = new
Option
<string>("--certificate-password")
79
var algorithm = new
Option
<string>("--hash-algorithm")
85
var timestamper = new
Option
<string>("--timestamper")
91
var timestamperAlgorithm = new
Option
<string>("--timestamp-hash-algorithm")
97
var overwrite = new
Option
<bool>("--overwrite")
103
var allowUntrustedRoot = new
Option
<bool>("--allow-untrusted-root")
109
var verbosity = new
Option
<string>("--verbosity", "-v")
Commands\Signing\TrustedSignersCommand.cs (16)
29
var configFile = new
Option
<string>("--configfile") { Description = Strings.Option_ConfigFile, Arity = ArgumentArity.ZeroOrOne };
46
var configFile = new
Option
<string>("--configfile") { Description = Strings.Option_ConfigFile, Arity = ArgumentArity.ZeroOrOne };
64
var configFile = new
Option
<string>("--configfile") { Description = Strings.Option_ConfigFile, Arity = ArgumentArity.ZeroOrOne };
83
var allowUntrustedRootOption = new
Option
<bool>("--allow-untrusted-root") { Description = Strings.TrustCommandAllowUntrustedRoot, Arity = ArgumentArity.Zero };
84
var configFile = new
Option
<string>("--configfile") { Description = Strings.Option_ConfigFile, Arity = ArgumentArity.ZeroOrOne };
105
var allowUntrustedRootOption = new
Option
<bool>("--allow-untrusted-root") { Description = Strings.TrustCommandAllowUntrustedRoot, Arity = ArgumentArity.Zero };
106
var owners = new
Option
<string>("--owners") { Description = Strings.TrustCommandOwners, Arity = ArgumentArity.ZeroOrOne };
107
var configFile = new
Option
<string>("--configfile") { Description = Strings.Option_ConfigFile, Arity = ArgumentArity.ZeroOrOne };
129
var algorithm = new
Option
<string>("--algorithm") { Description = Strings.TrustCommandAlgorithm, Arity = ArgumentArity.ZeroOrOne };
130
var allowUntrustedRootOption = new
Option
<bool>("--allow-untrusted-root") { Description = Strings.TrustCommandAllowUntrustedRoot, Arity = ArgumentArity.Zero };
131
var configFile = new
Option
<string>("--configfile") { Description = Strings.Option_ConfigFile, Arity = ArgumentArity.ZeroOrOne };
152
var sourceUrl = new
Option
<string>("--source-url") { Description = Strings.TrustSourceUrl, Arity = ArgumentArity.ZeroOrOne };
153
var owners = new
Option
<string>("--owners") { Description = Strings.TrustCommandOwners, Arity = ArgumentArity.ZeroOrOne };
154
var configFile = new
Option
<string>("--configfile") { Description = Strings.Option_ConfigFile, Arity = ArgumentArity.ZeroOrOne };
171
var mainConfigFile = new
Option
<string>("--configfile") { Description = Strings.Option_ConfigFile, Arity = ArgumentArity.ZeroOrOne };
278
return new
Option
<string>("--verbosity", "-v")
Commands\Signing\VerifyCommand.cs (4)
34
var all = new
Option
<bool>("--all")
40
var fingerPrint = new
Option
<string[]>("--certificate-fingerprint")
46
var configFile = new
Option
<string>("--configfile")
52
var verbosity = new
Option
<string>("--verbosity", "-v")
Commands\Why\WhyCommand.cs (1)
96
Option<List<string>> frameworks = new
Option
<List<string>>("--framework", "-f")
Program.cs (2)
105
rootCommand.Options.Add(new
Option
<bool>(CommandConstants.ForceEnglishOutputOption)
111
Option<bool> interactiveOption = new
Option
<bool>("--interactive")
SelectTests (11)
Program.cs (11)
21
var repoRootOption = new
Option
<string>("--repo-root")
27
var mapOption = new
Option
<string?>("--map")
32
var slnxOption = new
Option
<string?>("--slnx")
37
var fromOption = new
Option
<string?>("--from")
42
var toOption = new
Option
<string?>("--to")
47
var changedFilesOption = new
Option
<string?>("--changed-files")
52
var skipLayer1Option = new
Option
<bool>("--skip-layer1")
57
var forceAllOption = new
Option
<bool>("--force-all")
62
var forceAllReasonOption = new
Option
<string?>("--force-all-reason")
70
var enforceOption = new
Option
<bool>("--enforce")
76
var beforeBuildPropsOption = new
Option
<string?>("--before-build-props")
TypeScriptApiCompat (7)
Program.cs (7)
7
var baselineOption = new
Option
<string>("--baseline")
13
var currentOption = new
Option
<string>("--current")
19
var suppressionsRootOption = new
Option
<string?>("--suppressions-root")
25
var baselineSuppressionsRootOption = new
Option
<string?>("--baseline-suppressions-root")
30
var excludedPackagesFileOption = new
Option
<string?>("--excluded-packages-file")
35
var reportOption = new
Option
<string?>("--report")
40
var githubAnnotationsOption = new
Option
<bool>("--github-annotations")