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