459 references to GetValue
aspire (109)
Commands\AddCommand.cs (2)
94var source = parseResult.GetValue(s_sourceOption); 165var version = parseResult.GetValue(s_versionOption);
Commands\BaseCommand.cs (1)
83return parseResult.GetValue(formatOption) == OutputFormat.Json;
Commands\ConfigCommand.cs (3)
148var isGlobal = parseResult.GetValue(s_globalOption); 218var showAll = parseResult.GetValue(s_allOption); 367var isGlobal = parseResult.GetValue(s_globalOption);
Commands\DeployCommand.cs (4)
47var clearCache = parseResult.GetValue(_clearCacheOption); 54var logLevel = parseResult.GetValue(s_logLevelOption); 61var includeExceptionDetails = parseResult.GetValue(s_includeExceptionDetailsOption); 67var environment = parseResult.GetValue(s_environmentOption);
Commands\DescribeCommand.cs (2)
119var follow = parseResult.GetValue(s_followOption); 120var format = parseResult.GetValue(s_formatOption);
Commands\DoCommand.cs (3)
70var logLevel = parseResult.GetValue(s_logLevelOption); 76var includeExceptionDetails = parseResult.GetValue(s_includeExceptionDetailsOption); 82var environment = parseResult.GetValue(s_environmentOption);
Commands\DocsGetCommand.cs (2)
65var section = parseResult.GetValue(s_sectionOption); 66var format = parseResult.GetValue(s_formatOption);
Commands\DocsListCommand.cs (1)
53var format = parseResult.GetValue(s_formatOption);
Commands\DocsSearchCommand.cs (2)
66var format = parseResult.GetValue(s_formatOption); 67var limit = Math.Clamp(parseResult.GetValue(s_limitOption) ?? 5, 1, 10);
Commands\DoctorCommand.cs (1)
45var format = parseResult.GetValue(s_formatOption);
Commands\ExecCommand.cs (3)
81var targetResource = parseResult.GetValue(s_resourceOption); 85targetResource = parseResult.GetValue(s_startResourceOption); 138var waitForDebugger = parseResult.GetValue(RootCommand.WaitForDebuggerOption);
Commands\ExportCommand.cs (1)
76var outputPath = parseResult.GetValue(s_outputOption);
Commands\InitCommand.cs (6)
134var explicitLanguage = parseResult.GetValue(_languageOption); 616Source = parseResult.GetValue(s_sourceOption), 617Version = parseResult.GetValue(s_versionOption), 618Channel = parseResult.GetValue(_channelOption), 725var channelName = parseResult.GetValue(_channelOption); 778if (parseResult.GetValue(s_versionOption) is { } version)
Commands\LogsCommand.cs (4)
136var follow = parseResult.GetValue(s_followOption); 137var format = parseResult.GetValue(s_formatOption); 138var tail = parseResult.GetValue(s_tailOption); 139var timestamps = parseResult.GetValue(s_timestampsOption);
Commands\McpCallCommand.cs (1)
68var inputJson = parseResult.GetValue(s_inputOption);
Commands\McpToolsCommand.cs (1)
54var format = parseResult.GetValue(s_formatOption);
Commands\NewCommand.cs (6)
196var configuredChannelName = parseResult.GetValue(_channelOption); 249var version = parseResult.GetValue(s_versionOption); 267Name = parseResult.GetValue(s_nameOption), 268Output = parseResult.GetValue(s_outputOption), 269Source = parseResult.GetValue(s_sourceOption), 271Channel = parseResult.GetValue(_channelOption) ?? resolvedChannelName,
Commands\OptionWithLegacy.cs (2)
63=> parseResult.GetValue(optionWithLegacy.InnerOption) ?? parseResult.GetValue(optionWithLegacy.LegacyOption);
Commands\PipelineCommandBase.cs (6)
153var debugMode = parseResult.GetValue(RootCommand.DebugOption); 154var waitForDebugger = parseResult.GetValue(RootCommand.WaitForDebuggerOption); 155var noBuild = parseResult.GetValue(s_noBuildOption); 156var startDebugSession = _startDebugSessionOption is not null && parseResult.GetValue(_startDebugSessionOption); 193var outputPath = parseResult.GetValue(_outputPathOption); 256var logLevel = parseResult.GetValue(s_logLevelOption);
Commands\PsCommand.cs (2)
100var format = parseResult.GetValue(s_formatOption); 101var includeResources = parseResult.GetValue(s_resourcesOption);
Commands\PublishCommand.cs (3)
62var logLevel = parseResult.GetValue(s_logLevelOption); 69var includeExceptionDetails = parseResult.GetValue(s_includeExceptionDetailsOption); 75var environment = parseResult.GetValue(s_environmentOption);
Commands\RootCommand.cs (4)
77(DebugOption, pr => pr.GetValue(DebugOption) ? ["--debug"] : null), 80var level = pr.GetValue(DebugLevelOption); 83(WaitForDebuggerOption, pr => pr.GetValue(WaitForDebuggerOption) ? ["--wait-for-debugger"] : null), 186var bannerRequested = context.GetValue(BannerOption);
Commands\RunCommand.cs (11)
132var detach = parseResult.GetValue(s_detachOption); 134var noBuild = parseResult.GetValue(s_noBuildOption); 135var format = parseResult.GetValue(AppHostLauncher.s_formatOption); 136var isolated = parseResult.GetValue(AppHostLauncher.s_isolatedOption); 142startDebugSession = parseResult.GetValue(_startDebugSessionOption); 213var waitForDebugger = parseResult.GetValue(RootCommand.WaitForDebuggerOption); 219Debug = parseResult.GetValue(RootCommand.DebugOption), 616var format = parseResult.GetValue(AppHostLauncher.s_formatOption); 617var isolated = parseResult.GetValue(AppHostLauncher.s_isolatedOption); 618var noBuild = parseResult.GetValue(s_noBuildOption); 619var waitForDebugger = parseResult.GetValue(RootCommand.WaitForDebuggerOption);
Commands\Sdk\SdkDumpCommand.cs (2)
72var outputFile = parseResult.GetValue(s_outputOption); 73var format = parseResult.GetValue(s_formatOption);
Commands\Sdk\SdkGenerateCommand.cs (2)
65var language = parseResult.GetValue(s_languageOption)!; 66var outputDir = parseResult.GetValue(s_outputOption)!;
Commands\SecretListCommand.cs (1)
47var format = parseResult.GetValue(s_formatOption);
Commands\SetupCommand.cs (2)
49var installPath = parseResult.GetValue(s_installPathOption); 50var force = parseResult.GetValue(s_forceOption);
Commands\StartCommand.cs (4)
47var format = parseResult.GetValue(AppHostLauncher.s_formatOption); 48var isolated = parseResult.GetValue(AppHostLauncher.s_isolatedOption); 50var noBuild = parseResult.GetValue(s_noBuildOption); 52var waitForDebugger = parseResult.GetValue(RootCommand.WaitForDebuggerOption);
Commands\StopCommand.cs (1)
60var stopAll = parseResult.GetValue(s_allOption);
Commands\TelemetryLogsCommand.cs (5)
81var follow = parseResult.GetValue(s_followOption); 82var format = parseResult.GetValue(s_formatOption); 83var limit = parseResult.GetValue(s_limitOption); 84var traceId = parseResult.GetValue(s_traceIdOption); 85var severity = parseResult.GetValue(s_severityOption);
Commands\TelemetrySpansCommand.cs (5)
77var follow = parseResult.GetValue(s_followOption); 78var format = parseResult.GetValue(s_formatOption); 79var limit = parseResult.GetValue(s_limitOption); 80var traceId = parseResult.GetValue(s_traceIdOption); 81var hasError = parseResult.GetValue(s_hasErrorOption);
Commands\TelemetryTracesCommand.cs (4)
75var format = parseResult.GetValue(s_formatOption); 76var limit = parseResult.GetValue(s_limitOption); 77var traceId = parseResult.GetValue(s_traceIdOption); 78var hasError = parseResult.GetValue(s_hasErrorOption);
Commands\UpdateCommand.cs (5)
112var isSelfUpdate = parseResult.GetValue(s_selfOption); 156var channelName = parseResult.GetValue(_channelOption) ?? parseResult.GetValue(_qualityOption); 270var channel = selectedChannel ?? parseResult.GetValue(_channelOption) ?? parseResult.GetValue(_qualityOption);
Commands\WaitCommand.cs (2)
71var status = parseResult.GetValue(s_statusOption)!.ToLowerInvariant(); 72var timeoutSeconds = parseResult.GetValue(s_timeoutOption);
Templating\CliTemplateFactory.EmptyTemplate.cs (1)
113var useLocalhostTld = parseResult.GetValue(_localhostTldOption);
Templating\DotNetTemplateFactory.cs (4)
324var useLocalhostTld = result.GetValue(_localhostTldOption); 344var useRedisCache = result.GetValue(_useRedisCacheOption); 364var testFramework = result.GetValue(_testFrameworkOption); 405var xunitVersion = result.GetValue(_xunitVersionOption);
Aspire.RuntimeIdentifier.Tool (3)
Program.cs (3)
47string rgp = parseResult.GetValue(runtimeGraphPathOption) ?? throw new InvalidOperationException("The --runtimeGraphPath argument is required."); 56var ridToUse = parseResult.GetValue(netcoreSdkRuntimeIdentifierOption); 58var supportedRids = parseResult.GetValue(supportedRidsOption);
aspire-managed (22)
NuGet\Commands\LayoutCommand.cs (4)
52var assetsPath = parseResult.GetValue(assetsOption)!; 53var outputPath = parseResult.GetValue(outputOption)!; 54var framework = parseResult.GetValue(frameworkOption)!; 55var verbose = parseResult.GetValue(verboseOption);
NuGet\Commands\RestoreCommand.cs (9)
93var packageArgs = parseResult.GetValue(packageOption) ?? []; 94var framework = parseResult.GetValue(frameworkOption)!; 95var output = parseResult.GetValue(outputOption)!; 96var packagesDir = parseResult.GetValue(packagesDirOption); 97var sources = parseResult.GetValue(sourceOption) ?? []; 98var nugetConfigPath = parseResult.GetValue(configOption); 99var workingDir = parseResult.GetValue(workingDirOption); 100var noNugetOrg = parseResult.GetValue(noNugetOrgOption); 101var verbose = parseResult.GetValue(verboseOption);
NuGet\Commands\SearchCommand.cs (9)
89var query = parseResult.GetValue(queryOption)!; 90var prerelease = parseResult.GetValue(prereleaseOption); 91var take = parseResult.GetValue(takeOption); 92var skip = parseResult.GetValue(skipOption); 93var sources = parseResult.GetValue(sourceOption) ?? []; 94var configPath = parseResult.GetValue(configOption); 95var workingDir = parseResult.GetValue(workingDirOption); 96var format = parseResult.GetValue(formatOption) ?? "json"; 97var verbose = parseResult.GetValue(verboseOption);
cdac-build-tool (4)
ComposeCommand.cs (4)
36var output = parse.GetValue(outputFile); 42var baselinesDir = parse.GetValue(baselinePath); 54var templateFilePath = parse.GetValue(templateFile); 66var verbose = parse.GetValue(_verboseOption);
ConfigurationSchemaGenerator (3)
RootGenerateCommand.cs (3)
40var inputAssembly = parseResult.GetValue(s_inputOption); 41var references = parseResult.GetValue(s_referencesOption); 42var outputFile = parseResult.GetValue(s_outputOption);
crossgen2 (9)
Crossgen2RootCommand.cs (8)
240CompositeOrInputBubble = result.GetValue(Composite) | result.GetValue(InputBubble); 241if (result.GetValue(OptimizeSpace)) 245else if (result.GetValue(OptimizeTime)) 249else if (result.GetValue(Optimize)) 260int alignment = result.GetValue(CustomPESectionAlignment); 268string makeReproPath = result.GetValue(MakeReproPath); 276Helpers.MakeReproPackage(makeReproPath, result.GetValue(OutputFilePath), args,
Program.cs (1)
968private T Get<T>(Option<T> option) => _command.Result.GetValue(option);
dotnet (175)
Commands\BuildServer\Shutdown\BuildServerShutdownCommand.cs (3)
25bool msbuild = result.GetValue(Definition.MSBuildOption); 26bool vbcscompiler = result.GetValue(Definition.VbcsOption); 27bool razor = result.GetValue(Definition.RazorOption);
Commands\Clean\FileBasedAppArtifacts\CleanFileBasedAppArtifactsCommand.cs (3)
18bool dryRun = _parseResult.GetValue(Definition.DryRunOption); 74var days = _parseResult.GetValue(Definition.DaysOption); 93if (!_parseResult.GetValue(Definition.AutomaticOption))
Commands\Hidden\Complete\CompleteCommand.cs (1)
57var position = complete.GetValue(definition.PositionOption);
Commands\New\NewCommandParser.cs (5)
36var disableSdkTemplates = parseResult.GetValue(definition.DisableSdkTemplatesOption); 38var disableProjectContext = parseResult.GetValue(definition.DisableProjectContextEvaluationOption) 41var diagnosticMode = parseResult.GetValue(definition.DiagnosticOption); 43var projectPath = parseResult.GetValue(definition.InstantiateOptions.ProjectOption); 44var outputPath = parseResult.GetValue(definition.InstantiateOptions.OutputOption);
Commands\Pack\PackCommand.cs (5)
71parseResult.HasOption(definition.ConfigurationOption) ? parseResult.GetValue(definition.ConfigurationOption) : null 108OutputDirectory = parseResult.GetValue(definition.OutputOption), 109LogLevel = MappingVerbosityToNugetLogLevel(parseResult.GetValue(definition.VerbosityOption)), 121var version = parseResult.GetValue(definition.VersionOption); 125var configuration = parseResult.GetValue(definition.ConfigurationOption) ?? "Debug";
Commands\Package\Add\PackageAddCommand.cs (2)
51if (!_parseResult.GetValue(Definition.NoRestoreOption)) 163if (_parseResult.GetValue(Definition.NoRestoreOption))
Commands\Package\List\PackageListCommand.cs (2)
36ReportOutputFormat formatOption = _parseResult.GetValue(Definition.FormatOption); 37bool interactive = _parseResult.GetValue(Definition.InteractiveOption);
Commands\Package\PackageCommandParser.cs (4)
47var allowPrerelease = context.ParseResult.GetValue(def.PrereleaseOption); 57var allowPrerelease = context.ParseResult.GetValue(def.PrereleaseOption); 109(true, false) => (parseResult.GetValue(fileOption)!, AppKinds.FileBased), 110(false, true) => (parseResult.GetValue(projectOption)!, AppKinds.ProjectBased),
Commands\Project\Convert\ProjectConvertCommand.cs (5)
30_outputDirectory = parseResult.GetValue(Definition.OutputOption)?.FullName; 31_force = parseResult.GetValue(Definition.ForceOption); 32_dryRun = parseResult.GetValue(Definition.DryRunOption); 33_deleteSource = parseResult.GetValue(Definition.DeleteSourceOption); 34_interactive = parseResult.GetValue(Definition.InteractiveOption);
Commands\Publish\PublishCommand.cs (2)
77parseResult.HasOption(definition.ConfigurationOption) ? parseResult.GetValue(definition.ConfigurationOption) : null, 78parseResult.HasOption(definition.FrameworkOption) ? parseResult.GetValue(definition.FrameworkOption) : null
Commands\Reference\Add\ReferenceAddCommand.cs (2)
26bool interactive = _parseResult.GetValue(Definition.InteractiveOption); 32var frameworkString = _parseResult.GetValue(Definition.FrameworkOption);
Commands\Reference\Remove\ReferenceRemoveCommand.cs (1)
47_parseResult.GetValue(Definition.FrameworkOption),
Commands\Run\RunCommand.cs (7)
846string? projectOption = parseResult.GetValue(definition.ProjectOption); 847string? fileOption = parseResult.GetValue(definition.FileOption); 898string launchProfile = parseResult.GetValue(definition.LaunchProfileOption) ?? string.Empty; 944device: parseResult.GetValue(definition.DeviceOption), 948interactive: parseResult.GetValue(definition.InteractiveOption), 952environmentVariables: parseResult.GetValue(definition.EnvOption) ?? ImmutableDictionary<string, string>.Empty 959if (parseResult.HasOption(definition.PropertyOption) && parseResult.GetValue(definition.PropertyOption)!.Any())
Commands\Solution\Add\SolutionAddCommand.cs (3)
45_inRoot = parseResult.GetValue(Definition.InRootOption); 46_solutionFolderPath = parseResult.GetValue(Definition.SolutionFolderOption); 47_includeReferences = parseResult.GetValue(Definition.IncludeReferencesOption);
Commands\Solution\List\SolutionListCommand.cs (1)
21_displaySolutionFolders = parseResult.GetValue(Definition.SolutionFolderOption);
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (5)
36EnvironmentVariables: parseResult.GetValue(definition.EnvOption) ?? ImmutableDictionary<string, string>.Empty); 53parseResult.GetValue(definition.MinimumExpectedTestsOption) is { } minimumExpectedTests && 72var showPassedTests = parseResult.GetValue(definition.OutputOption) == OutputOptions.Detailed; 100MinimumExpectedTests = parseResult.GetValue(definition.MinimumExpectedTestsOption), 119var degreeOfParallelism = parseResult.GetValue(definition.MaxParallelTestModulesOption);
Commands\Test\MTP\MSBuildUtility.cs (13)
111string? resultsDirectory = parseResult.GetValue(definition.ResultsDirectoryOption); 117string? configFile = parseResult.GetValue(definition.ConfigFileOption); 123string? diagnosticOutputDirectory = parseResult.GetValue(definition.DiagnosticOutputDirectoryOption); 129var projectOrSolutionOptionValue = parseResult.GetValue(definition.ProjectOrSolutionOption); 130var testModulesFilterOptionValue = parseResult.GetValue(definition.TestModulesFilterOption); 139positionalProjectOrSolution ?? parseResult.GetValue(definition.ProjectOrSolutionOption), 140parseResult.GetValue(definition.SolutionOption), 141positionalTestModules ?? parseResult.GetValue(definition.TestModulesFilterOption), 148parseResult.GetValue(definition.NoRestoreOption), 149parseResult.GetValue(definition.NoBuildOption), 150parseResult.HasOption(definition.VerbosityOption) ? parseResult.GetValue(definition.VerbosityOption) : null, 151parseResult.GetValue(definition.NoLaunchProfileOption), 152parseResult.GetValue(definition.NoLaunchProfileArgumentsOption),
Commands\Test\MTP\TestModulesFilterHandler.cs (1)
31rootDirectory = parseResult.GetValue(definition.TestModulesRootDirectoryOption);
Commands\Test\VSTest\TestCommand.cs (5)
131exitCode |= RunArtifactPostProcessingIfNeeded(testSessionCorrelationId, parseResult.GetValue(definition.DiagOption), FeatureFlag.Instance); 175exitCode |= RunArtifactPostProcessingIfNeeded(testSessionCorrelationId, parseResult.GetValue(definition.DiagOption), FeatureFlag.Instance); 242bool noRestore = result.GetValue(definition.NoRestoreOption) || result.GetValue(definition.NoBuildOption); 259if (result.GetValue(definition.TestEnvOption) is { } environmentVariables)
Commands\Tool\Execute\ToolExecuteCommand.cs (7)
42_allowRollForward = result.GetValue(Definition.RollForwardOption); 43_configFile = result.GetValue(Definition.ConfigOption); 44_sources = result.GetValue(Definition.SourceOption) ?? []; 45_addSource = result.GetValue(Definition.AddSourceOption) ?? []; 46_verbosity = result.GetValue(Definition.VerbosityOption); 55_parseResult.GetValue(Definition.VersionOption), 56_parseResult.GetValue(Definition.PrereleaseOption));
Commands\Tool\Install\ToolInstallCommand.cs (3)
26_global = parseResult.GetValue(Definition.LocationOptions.GlobalOption); 27_toolPath = parseResult.GetValue(Definition.LocationOptions.ToolPathOption); 28_framework = parseResult.GetValue(Definition.FrameworkOption);
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (13)
72_configFilePath = parseResult.GetValue(Definition.ConfigOption); 73_framework = parseResult.GetValue(Definition.FrameworkOption); 74_source = parseResult.GetValue(Definition.SourceOption); 75_addSource = parseResult.GetValue(Definition.AddSourceOption); 76_global = parseResult.GetValue(Definition.LocationOptions.GlobalOption); 78_toolPath = parseResult.GetValue(Definition.LocationOptions.ToolPathOption); 82_updateAll = parseResult.GetValue(updateDef.UpdateAllOption); 89_architecture = parseResult.GetValue(installDef.ArchitectureOption); 90_allowRollForward = parseResult.GetValue(installDef.RollForwardOption); 99var configOption = parseResult.GetValue(Definition.ConfigOption); 124_allowPackageDowngrade = parseResult.GetValue(Definition.AllowPackageDowngradeOption); 164_parseResult.GetValue(Definition.VersionOption), 165_parseResult.GetValue(Definition.PrereleaseOption));
Commands\Tool\Install\ToolInstallLocalCommand.cs (11)
47_updateAll = parseResult.GetValue(updateDef.UpdateAllOption); 54_createManifestIfNeeded = parseResult.GetValue(installDef.CreateManifestIfNeededOption); 55_allowRollForward = parseResult.GetValue(installDef.RollForwardOption); 58_explicitManifestFile = parseResult.GetValue(Definition.ToolManifestOption); 69configFilePath: parseResult.GetValue(Definition.ConfigOption), 70sources: parseResult.GetValue(Definition.AddSourceOption), 71sourceFeedOverrides: parseResult.GetValue(Definition.SourceOption), 72verbosity: parseResult.GetValue(Definition.VerbosityOption), 77_allowPackageDowngrade = parseResult.GetValue(Definition.AllowPackageDowngradeOption); 98_parseResult.GetValue(Definition.VersionOption), 99_parseResult.GetValue(Definition.PrereleaseOption));
Commands\Tool\List\ToolListGlobalOrToolPathCommand.cs (2)
28var toolPathOption = _parseResult.GetValue(Definition.LocationOptions.ToolPathOption); 56var formatValue = _parseResult.GetValue(Definition.ToolListFormatOption);
Commands\Tool\List\ToolListLocalCommand.cs (1)
43var formatValue = _parseResult.GetValue(Definition.ToolListFormatOption);
Commands\Tool\Restore\ToolRestoreCommand.cs (5)
65_configFilePath = result.GetValue(Definition.ConfigOption); 66_sources = result.GetValue(Definition.AddSourceOption); 67_verbosity = result.GetValue(Definition.VerbosityOption); 68if (!result.HasOption(Definition.VerbosityOption) && result.GetValue(Definition.RestoreOptions.InteractiveOption)) 182string customFile = _parseResult.GetValue(Definition.ToolManifestOption);
Commands\Tool\Run\ToolRunCommand.cs (1)
26_allowRollForward = result.GetValue(Definition.RollForwardOption);
Commands\Tool\Search\ToolSearchCommand.cs (3)
22var isDetailed = _parseResult.GetValue(Definition.DetailOption); 43prerelease: _parseResult.GetValue(Definition.PrereleaseOption)); 47var valueFromParser = _parseResult.GetValue(alias);
Commands\Tool\Uninstall\ToolUninstallCommand.cs (2)
26_global = result.GetValue(Definition.LocationOptions.GlobalOption); 27_toolPath = result.GetValue(Definition.LocationOptions.ToolPathOption);
Commands\Tool\Uninstall\ToolUninstallGlobalOrToolPathCommand.cs (2)
32var global = _parseResult.GetValue(Definition.LocationOptions.GlobalOption); 33var toolPath = _parseResult.GetValue(Definition.LocationOptions.ToolPathOption);
Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (1)
32_explicitManifestFile = parseResult.GetValue(Definition.ToolManifestOption);
Commands\Tool\Update\ToolUpdateCommand.cs (3)
46_global = result.GetValue(Definition.LocationOptions.GlobalOption); 47_toolPath = result.GetValue(Definition.LocationOptions.ToolPathOption); 84!string.IsNullOrEmpty(parseResult.GetValue(Definition.VersionOption)))
Commands\VSTest\VSTestCommand.cs (1)
52var loggerValues = parseResult.GetValue(definition.TestLoggerOption);
Commands\Workload\Clean\WorkloadCleanCommand.cs (2)
30_cleanAll = parseResult.GetValue(Definition.CleanAllOption); 34if (!string.IsNullOrEmpty(parseResult.GetValue(Definition.SdkVersionOption)))
Commands\Workload\Config\WorkloadConfigCommand.cs (1)
34_updateMode = parseResult.GetValue(Definition.UpdateMode);
Commands\Workload\Install\WorkloadInstallCommand.cs (1)
50skipManifestUpdate = parseResult.GetValue(installDef.SkipManifestUpdateOption);
Commands\Workload\InstallingWorkloadCommand.cs (10)
94_printDownloadLinkOnly = parseResult.GetValue(Definition.PrintDownloadLinkOnlyOption); 95_fromCacheOption = parseResult.GetValue(Definition.FromCacheOption); 96_includePreviews = parseResult.GetValue(Definition.IncludePreviewOption); 97_downloadToCacheOption = parseResult.GetValue(Definition.DownloadToCacheOption); 99_fromRollbackDefinition = parseResult.GetValue(Definition.FromRollbackFileOption); 100_workloadSetVersionFromCommandLine = parseResult.GetValue(Definition.WorkloadSetVersionOption); 102var configOption = parseResult.GetValue(Definition.ConfigOption); 103var sourceOption = parseResult.GetValue(Definition.SourceOption); 109if (!string.IsNullOrEmpty(parseResult.GetValue(Definition.SdkVersionOption))) 114_targetSdkVersion = new ReleaseVersion(parseResult.GetValue(Definition.SdkVersionOption));
Commands\Workload\List\WorkloadListCommand.cs (3)
41_machineReadableOption = parseResult.GetValue(Definition.MachineReadableOption); 47parseResult.GetValue(Definition.VersionOption) ?? null, 57_includePreviews = parseResult.GetValue(Definition.IncludePreviewsOption);
Commands\Workload\Repair\WorkloadRepairCommand.cs (3)
35var configOption = parseResult.GetValue(Definition.ConfigOption); 36var sourceOption = parseResult.GetValue(Definition.SourceOption); 42if (!string.IsNullOrEmpty(parseResult.GetValue(Definition.SdkVersionOption)))
Commands\Workload\Search\WorkloadSearchCommand.cs (1)
27if (!string.IsNullOrEmpty(result.GetValue(Definition.VersionOption)))
Commands\Workload\Search\WorkloadSearchVersionsCommand.cs (4)
42if (!string.IsNullOrEmpty(result.GetValue(Definition.Parent.VersionOption))) 52_numberOfWorkloadSetsToTake = result.GetValue(Definition.TakeOption); 53_workloadSetOutputFormat = result.GetValue(Definition.FormatOption); 62result.GetValue(Definition.IncludePreviewsOption) :
Commands\Workload\Uninstall\WorkloadUninstallCommand.cs (1)
37if (!string.IsNullOrEmpty(parseResult.GetValue(Definition.VersionOption)))
Commands\Workload\Update\WorkloadUpdateCommand.cs (5)
48_fromPreviousSdk = parseResult.GetValue(updateDef.FromPreviousSdkOption); 49_adManifestOnlyOption = parseResult.GetValue(updateDef.AdManifestOnlyOption); 50_printRollbackDefinitionOnly = parseResult.GetValue(updateDef.PrintRollbackOption); 51_fromHistorySpecified = parseResult.GetValue(updateDef.FromHistoryOption); 52_historyManifestOnlyOption = !string.IsNullOrWhiteSpace(parseResult.GetValue(updateDef.HistoryManifestOnlyOption));
Commands\Workload\WorkloadCommandBase.cs (4)
100var skipSignCheck = Definition.SkipSignCheckOption != null && parseResult.GetValue(Definition.SkipSignCheckOption); 106Verbosity = Definition.VerbosityOption != null ? parseResult.GetValue(Definition.VerbosityOption) : VerbosityOptions.normal; 114: Definition.TempDirOption != null && !string.IsNullOrWhiteSpace(parseResult.GetValue(Definition.TempDirOption)) 115? parseResult.GetValue(Definition.TempDirOption)!
Commands\Workload\WorkloadCommandParser.cs (5)
48return new RestoreActionConfig(DisableParallel: parseResult.GetValue(options.DisableParallelOption), 49NoCache: parseResult.GetValue(options.NoCacheOption) || parseResult.GetValue(options.NoHttpCacheOption), 50IgnoreFailedSources: parseResult.GetValue(options.IgnoreFailedSourcesOption), 51Interactive: parseResult.GetValue(options.InteractiveOption));
Extensions\CommonOptionsExtensions.cs (5)
104return new RestoreActionConfig(DisableParallel: parseResult.GetValue(options.DisableParallelOption), 105NoCache: parseResult.GetValue(options.NoCacheOption) || parseResult.GetValue(options.NoHttpCacheOption), 106IgnoreFailedSources: parseResult.GetValue(options.IgnoreFailedSourcesOption), 107Interactive: parseResult.GetValue(options.InteractiveOption));
Parser.cs (1)
175if (parseResult.GetValue(rootCommand.DiagOption) && parseResult.Tokens.Count == 1)
ParserOptionActions.cs (4)
39if (!parseResult.HasOption(Option) || !parseResult.GetValue(option) 112if (!parseResult.HasOption(Option) || !parseResult.GetValue(option) 131if (!parseResult.HasOption(Option) || !parseResult.GetValue(option) 175if (!parseResult.HasOption(Option) || !parseResult.GetValue(option))
dotnet-format (19)
Commands\FormatAnalyzersCommand.cs (3)
39parseResult.GetValue(SeverityOption) is string { Length: > 0 } analyzerSeverity) 45parseResult.GetValue(DiagnosticsOption) is string[] { Length: > 0 } diagnostics) 51parseResult.GetValue(ExcludeDiagnosticsOption) is string[] { Length: > 0 } excludeDiagnostics)
Commands\FormatCommandCommon.cs (10)
159parseResult.GetValue(VerbosityOption) is string { Length: > 0 } verbosity) 173if (parseResult.GetValue(NoRestoreOption)) 178if (parseResult.GetValue(VerifyNoChanges)) 184if (parseResult.GetValue(IncludeGeneratedOption)) 191var fileToInclude = parseResult.GetValue(IncludeOption) ?? Array.Empty<string>(); 192var fileToExclude = parseResult.GetValue(ExcludeOption) ?? Array.Empty<string>(); 201if (parseResult.GetValue(ReportOption) is string { Length: > 0 } reportPath) 211if (parseResult.GetValue(BinarylogOption) is string { Length: > 0 } binaryLogPath) 220parseResult.GetValue(FrameworkOption) is string { Length: > 0 } framework) 316if (parseResult.GetValue(FolderOption))
Commands\FormatStyleCommand.cs (3)
39parseResult.GetValue(SeverityOption) is string { Length: > 0 } styleSeverity) 45parseResult.GetValue(DiagnosticsOption) is string[] { Length: > 0 } diagnostics) 51parseResult.GetValue(ExcludeDiagnosticsOption) is string[] { Length: > 0 } excludeDiagnostics)
Commands\RootFormatCommand.cs (3)
42parseResult.GetValue(SeverityOption) is string { Length: > 0 } defaultSeverity) 49parseResult.GetValue(DiagnosticsOption) is string[] { Length: > 0 } diagnostics) 55parseResult.GetValue(ExcludeDiagnosticsOption) is string[] { Length: > 0 } excludeDiagnostics)
dotnet-sourcelink (5)
dotnet-suggest (3)
SuggestionDispatcher.cs (3)
61Register(context.GetValue(commandPathOption), context.InvocationConfiguration.Output); 129var commandPath = parseResult.GetValue(ExecutableOption); 141var position = parseResult.GetValue(PositionOption);
dotnet-watch (14)
CommandLine\CommandLineOptions.cs (14)
109var projectValue = parseResult.GetValue(definition.LongProjectOption); 112var projectShortValue = parseResult.GetValue(definition.ShortProjectOption); 143var logLevel = parseResult.GetValue(definition.VerboseOption) 145: parseResult.GetValue(definition.QuietOption) 149var launchProfile = parseResult.GetValue(definition.NoLaunchProfileOption) 151: parseResult.GetValue(definition.LaunchProfileOption); 155List = parseResult.GetValue(definition.ListOption), 159NoHotReload = parseResult.GetValue(definition.NoHotReloadOption), 160NonInteractive = parseResult.GetValue(definition.NonInteractiveOption), 170FilePath = parseResult.GetValue(definition.FileOption), 173TargetFramework = parseResult.GetValue(definition.FrameworkOption), 174Device = parseResult.GetValue(definition.DeviceOption), 225parseResult.GetValue((Option<string>)optionResult.Option) is { } projectPath) 234if (optionResult.Option == definition.NonInteractiveOption && parseResult.GetValue(definition.NonInteractiveOption))
GenerateDocumentationAndConfigFiles (23)
Program.cs (23)
207var validateOnly = parseResult.GetValue(validateOnlyOption); 208var analyzerRulesetsDir = parseResult.GetValue(analyzerRulesetsDirOption) ?? string.Empty; 209var analyzerEditorconfigsDir = parseResult.GetValue(analyzerEditorConfigsDirOption) ?? string.Empty; 210var analyzerGlobalconfigsDir = parseResult.GetValue(analyzerGlobalConfigsDirOption) ?? string.Empty; 211var binDirectory = parseResult.GetValue(binDirectoryOption) ?? string.Empty; 212var configuration = parseResult.GetValue(configurationOption) ?? string.Empty; 213var tfm = parseResult.GetValue(tfmOption) ?? string.Empty; 214var assembliesString = parseResult.GetValue(assembliesOption) ?? string.Empty; 216var propsFileDir = parseResult.GetValue(propsFileDirOption) ?? string.Empty; 217var propsFileName = parseResult.GetValue(propsFileNameOption) ?? string.Empty; 218var targetsFileDir = parseResult.GetValue(targetsFileDirOption) ?? string.Empty; 219var targetsFileName = parseResult.GetValue(targetsFileNameOption) ?? string.Empty; 220var propsFileToDisableNetAnalyzersInNuGetPackageName = parseResult.GetValue(propsFileToDisableNetAnalyzersInNuGetPackageNameOption) ?? string.Empty; 221var analyzerDocumentationFileDir = parseResult.GetValue(analyzerDocumentationFileDirOption) ?? string.Empty; 222var analyzerDocumentationFileName = parseResult.GetValue(analyzerDocumentationFileNameOption) ?? string.Empty; 223var analyzerSarifFileDir = parseResult.GetValue(analyzerSarifFileDirOption) ?? string.Empty; 224var analyzerSarifFileName = parseResult.GetValue(analyzerSarifFileNameOption) ?? string.Empty; 225var analyzerVersion = parseResult.GetValue(analyzerVersionOption) ?? string.Empty; 226var analyzerPackageName = parseResult.GetValue(analyzerPackageNameOption) ?? string.Empty; 227var containsPortedFxCopRules = parseResult.GetValue(containsPortedFxCopRulesOption); 228var generateAnalyzerRulesMissingDocumentationFile = parseResult.GetValue(generateAnalyzerRulesMissingDocumentationFileOption); 229var releaseTrackingOptOut = parseResult.GetValue(releaseTrackingOptOutOption); 230var validateOffline = parseResult.GetValue(validateOfflineOption);
ilasm (2)
IlasmRootCommand.cs (1)
164if (result.GetValue(WaitForDebugger))
Program.cs (1)
291private T Get<T>(Option<T> option) => _command.Result.GetValue(option)!;
ilc (6)
ILCompilerRootCommand.cs (5)
284if (result.GetValue(OptimizeSpace)) 288else if (result.GetValue(OptimizeTime)) 292else if (result.GetValue(Optimize)) 303string makeReproPath = result.GetValue(MakeReproPath); 312Helpers.MakeReproPackage(makeReproPath, result.GetValue(OutputFilePath), args, result,
Program.cs (1)
823private T Get<T>(Option<T> option) => _command.Result.GetValue(option);
Microsoft.DotNet.Cli.Definitions (6)
Commands\Hidden\Add\AddReferenceCommandDefinition.cs (1)
25? parseResult.GetValue(ProjectOption)
Commands\New\NewUpdateCommandDefinition.cs (1)
58=> result.GetValue(CheckOnlyOption);
Commands\Reference\ReferenceAddCommandDefinition.cs (1)
17=> parseResult.GetValue(Parent.ProjectOption);
Commands\Reference\ReferenceListCommandDefinition.cs (1)
17=> parseResult.GetValue(Parent.ProjectOption);
Commands\Reference\ReferenceRemoveCommandDefinition.cs (1)
15=> parseResult.GetValue(Parent.ProjectOption);
Common\TargetPlatformOptions.cs (1)
89? parseResult.GetValue(ArchitectureOption)
Microsoft.DotNet.VersionTools.Cli (3)
Program.cs (3)
54AssetsDirectory = result.GetValue(assetsDirectoryOption), 55SearchPattern = result.GetValue(searchPatternOption), 56Recursive = result.GetValue(recursiveOption)
Microsoft.NET.Sdk.BlazorWebAssembly.Tool (3)
Program.cs (3)
42var c = parseResult.GetValue(compressionLevelOption); 43var s = parseResult.GetValue(sourcesOption); 44var o = parseResult.GetValue(outputsOption);
Microsoft.NET.Sdk.StaticWebAssets.Tool (3)
Program.cs (3)
42var c = parseResults.GetValue(compressionLevelOption); 43var s = parseResults.GetValue(sourcesOption); 44var o = parseResults.GetValue(outputsOption);
Microsoft.TemplateEngine.Cli (20)
Commands\create\TemplateCommandArgs.cs (4)
22IsForceFlagSpecified = parseResult.GetValue(command.ForceOption); 23IsDryRun = parseResult.GetValue(command.DryRunOption); 24NoUpdateCheck = parseResult.GetValue(command.NoUpdateCheckOption); 40AllowScripts = parseResult.GetValue(command.AllowScriptsOption);
Commands\details\DetailsCommandArgs.cs (2)
18Interactive = parseResult.GetValue(detailsCommand.Definition.InteractiveOption); 19AdditionalSources = parseResult.GetValue(detailsCommand.Definition.AddSourceOption);
Commands\GlobalArgs.cs (8)
18DebugCustomSettingsLocation = parseResult.GetValue(definition.DebugCustomSettingsLocationOption); 19DebugVirtualizeSettings = parseResult.GetValue(definition.DebugVirtualizeSettingsOption); 20DebugAttach = parseResult.GetValue(definition.DebugAttachOption); 21DebugReinit = parseResult.GetValue(definition.DebugReinitOption); 22DebugRebuildCache = parseResult.GetValue(definition.DebugRebuildCacheOption); 23DebugShowConfig = parseResult.GetValue(definition.DebugShowConfigOption); 48return (parseResult.GetValue(command.ColumnsAllOption), parseResult.GetValue(command.ColumnsOption));
Commands\install\InstallCommandArgs.cs (3)
32Interactive = parseResult.GetValue(installCommand.Definition.InteractiveOption); 33AdditionalSources = parseResult.GetValue(installCommand.Definition.AddSourceOption); 34Force = parseResult.GetValue(installCommand.Definition.ForceOption);
Commands\list\ListCommandArgs.cs (1)
36IgnoreConstraints = parseResult.GetValue(command.Definition.IgnoreConstraintsOption);
Commands\update\UpdateCommandArgs.cs (2)
15Interactive = parseResult.GetValue(definition.InteractiveOption); 16AdditionalSources = parseResult.GetValue(definition.AddSourceOption);
NuGet.CommandLine.XPlat (26)
Commands\ConfigCommands\ConfigCommand.cs (5)
142WorkingDirectory = parseResult.GetValue(WorkingDirectory), 163WorkingDirectory = parseResult.GetValue(WorkingDirectory), 164ShowPath = parseResult.GetValue(ShowPathOption), 185ConfigFile = parseResult.GetValue(ConfigFileOption), 204ConfigFile = parseResult.GetValue(ConfigFileOption),
Commands\Package\Download\PackageDownloadCommand.cs (7)
84Sources = parserResult.GetValue(sources), 85OutputDirectory = parserResult.GetValue(outputDirectory), 86IncludePrerelease = parserResult.GetValue(prerelease), 87AllowInsecureConnections = parserResult.GetValue(allowInsecureConnections), 88Interactive = parserResult.GetValue(interactiveOption), 89ConfigFile = parserResult.GetValue(configFile), 90LogLevel = (parserResult.GetValue(verbosity) ?? VerbosityEnum.normal).ToLogLevel()
Commands\Package\Update\PackageUpdateCommand.cs (4)
51FileSystemInfo? project = args.GetValue(projectOption); 53bool interactive = args.GetValue(interactiveOption); 54VerbosityEnum verbosity = args.GetValue(verbosityOption) ?? VerbosityEnum.normal; 56bool vulnerable = args.GetValue(vulnerableOption);
Commands\PackageSearch\PackageSearchCommand.cs (9)
113var packageSearchArgs = new PackageSearchArgs(parserResult.GetValue(skip), parserResult.GetValue(take), parserResult.GetValue(format), parserResult.GetValue(verbosity)) 115Sources = parserResult.GetValue(sources), 117ExactMatch = parserResult.GetValue(exactMatch), 118Interactive = parserResult.GetValue(interactive), 119Prerelease = parserResult.GetValue(prerelease), 124return await setupSettingsAndRunSearchAsync(packageSearchArgs, parserResult.GetValue(configFile), cancelationToken);
Commands\Why\WhyCommand.cs (1)
130Frameworks = parseResult.GetValue(frameworks)!,
System.CommandLine (1)
Parsing\SymbolResult.cs (1)
116/// <inheritdoc cref="ParseResult.GetValue{T}(Option{T})"/>