117 references to GetValue
aspire (27)
Commands\AddCommand.cs (1)
71var integrationName = parseResult.GetValue(s_integrationArgument);
Commands\ConfigCommand.cs (4)
86var key = parseResult.GetValue(s_keyArgument); 146var key = parseResult.GetValue(s_keyArgument); 147var value = parseResult.GetValue(s_valueArgument); 366var key = parseResult.GetValue(s_keyArgument);
Commands\DescribeCommand.cs (1)
117var resourceName = parseResult.GetValue(s_resourceArgument);
Commands\DoCommand.cs (3)
42var step = parseResult.GetValue(_stepArgument); 50var step = parseResult.GetValue(_stepArgument); 97var step = parseResult.GetValue(_stepArgument);
Commands\DocsGetCommand.cs (1)
64var slug = parseResult.GetValue(s_slugArgument)!;
Commands\DocsSearchCommand.cs (1)
65var query = parseResult.GetValue(s_queryArgument)!;
Commands\ExportCommand.cs (1)
74var resourceName = parseResult.GetValue(s_resourceArgument);
Commands\LogsCommand.cs (1)
134var resourceName = parseResult.GetValue(s_resourceArgument);
Commands\McpCallCommand.cs (2)
66var resourceName = parseResult.GetValue(s_resourceArgument)!; 67var toolName = parseResult.GetValue(s_toolArgument)!;
Commands\ResourceCommand.cs (2)
68var resourceName = parseResult.GetValue(s_resourceArgument)!; 69var commandName = parseResult.GetValue(s_commandArgument)!;
Commands\Sdk\SdkDumpCommand.cs (1)
71var integrationArgs = parseResult.GetValue(s_integrationArgument) ?? [];
Commands\Sdk\SdkGenerateCommand.cs (1)
64var integrationProject = parseResult.GetValue(s_integrationArgument)!;
Commands\SecretDeleteCommand.cs (1)
46var key = parseResult.GetValue(s_keyArgument)!;
Commands\SecretGetCommand.cs (1)
46var key = parseResult.GetValue(s_keyArgument)!;
Commands\SecretSetCommand.cs (2)
51var key = parseResult.GetValue(s_keyArgument)!; 52var value = parseResult.GetValue(s_valueArgument)!;
Commands\TelemetryLogsCommand.cs (1)
79var resourceName = parseResult.GetValue(s_resourceArgument);
Commands\TelemetrySpansCommand.cs (1)
75var resourceName = parseResult.GetValue(s_resourceArgument);
Commands\TelemetryTracesCommand.cs (1)
73var resourceName = parseResult.GetValue(s_resourceArgument);
Commands\WaitCommand.cs (1)
70var resourceName = parseResult.GetValue(s_resourceArgument)!;
cdac-build-tool (1)
ComposeCommand.cs (1)
30var inputs = parse.GetValue(inputFiles);
crossgen2 (1)
Program.cs (1)
108Dictionary<string, string> inputFilePathsArg = _command.Result.GetValue(_command.InputFilePaths);
dotnet (50)
Commands\DotNetCommandFactory.cs (1)
59var args = parseResult.GetValue(catchAllUserInputArgument) ?? [];
Commands\Format\FormatCommandParser.cs (1)
12command.SetAction(parseResult => FormatCommand.Run(parseResult.GetValue(command.Arguments) ?? []));
Commands\Fsi\FsiCommandParser.cs (1)
12command.SetAction(parseResult => FsiCommand.Run(parseResult.GetValue(command.Arguments) ?? []));
Commands\Help\HelpCommand.cs (1)
24if (result.GetValue(definition.Argument) is string[] args && args is not [])
Commands\Hidden\Complete\CompleteCommand.cs (1)
55var input = complete.GetValue(definition.PathArgument) ?? string.Empty;
Commands\Hidden\InternalReportInstallSuccess\InternalReportInstallSuccessCommand.cs (1)
29var exeName = Path.GetFileName(result.GetValue(definition.Argument));
Commands\MSBuild\MSBuildCommand.cs (1)
39..parseResult.GetValue(definition.Arguments) ?? [],
Commands\NuGet\NuGetCommand.cs (1)
28&& parseResult.GetValue(pathArg) is { } path
Commands\Pack\PackCommand.cs (3)
33var args = parseResult.GetValue(definition.SlnOrProjectOrFileArgument) ?? []; 94var args = parseResult.GetValue(definition.SlnOrProjectOrFileArgument)?.ToList() ?? new List<string>(); 141var args = parseResult.GetValue(definition.SlnOrProjectOrFileArgument)?.ToList() ?? new List<string>();
Commands\Package\Add\PackageAddCommand.cs (1)
22_packageId = parseResult.GetValue(Definition.PackageIdArgument);
Commands\Package\PackageCommandParser.cs (2)
54if (context.ParseResult.GetValue(def.PackageIdArgument) is { HasVersion: false } packageId) 106(false, false) => projectOrFileArgument != null && parseResult.GetValue(projectOrFileArgument) is { } projectOrFile
Commands\Package\Remove\PackageRemoveCommand.cs (1)
20var arguments = _parseResult.GetValue(_definition.CmdPackageArgument) ?? [];
Commands\Package\Search\PackageSearchCommand.cs (1)
21var searchArgument = _parseResult.GetValue(Definition.SearchTermArgument);
Commands\Project\Convert\ProjectConvertCommand.cs (1)
29_file = parseResult.GetValue(Definition.FileArgument) ?? string.Empty;
Commands\Publish\PublishCommand.cs (1)
36string[] args = parseResult.GetValue(definition.SlnOrProjectOrFileArgument) ?? [];
Commands\Reference\Add\ReferenceAddCommand.cs (1)
34var arguments = _parseResult.GetValue(Definition.ProjectPathArgument).ToList().AsReadOnly();
Commands\Reference\Remove\ReferenceRemoveCommand.cs (1)
21_arguments = parseResult.GetValue(Definition.ProjectPathArgument).ToList().AsReadOnly();
Commands\Run\RunCommand.cs (1)
830var applicationArguments = parseResult.GetValue(definition.ApplicationArguments)?.ToList();
Commands\Solution\Add\SolutionAddCommand.cs (2)
43_fileOrDirectory = parseResult.GetValue(Definition.Parent.SlnArgument)!; 44_projects = (IReadOnlyCollection<string>)(parseResult.GetValue(Definition.ProjectPathArgument) ?? []);
Commands\Solution\List\SolutionListCommand.cs (1)
20_fileOrDirectory = parseResult.GetValue(Definition.Parent.SlnArgument);
Commands\Solution\Migrate\SolutionMigrateCommand.cs (1)
21_slnFileOrDirectory = parseResult.GetValue(Definition.Parent.SlnArgument);
Commands\Solution\Remove\SolutionRemoveCommand.cs (2)
22_fileOrDirectory = parseResult.GetValue(Definition.Parent.SlnArgument); 23_projects = [.. parseResult.GetValue(Definition.ProjectPathArgument) ?? []];
Commands\Tool\Execute\ToolExecuteCommand.cs (2)
40_packageToolIdentityArgument = result.GetValue(Definition.PackageIdentityArgument); 41_forwardArguments = result.GetValue(Definition.CommandArgument) ?? [];
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (2)
83_packageIdentityWithRange = parseResult.GetValue(updateDef.PackageIdentityArgument); 88_packageIdentityWithRange = parseResult.GetValue(installDef.PackageIdentityArgument);
Commands\Tool\Install\ToolInstallLocalCommand.cs (2)
48_packageIdentityWithRange = parseResult.GetValue(updateDef.PackageIdentityArgument); 53_packageIdentityWithRange = parseResult.GetValue(installDef.PackageIdentityArgument);
Commands\Tool\List\ToolListGlobalOrToolPathCommand.cs (1)
29var packageIdArgument = _parseResult.GetValue(Definition.PackageIdArgument);
Commands\Tool\List\ToolListLocalCommand.cs (1)
34var packageIdArgument = _parseResult.GetValue(Definition.PackageIdArgument);
Commands\Tool\Run\ToolRunCommand.cs (2)
23_toolCommandName = result.GetValue(Definition.CommandNameArgument); 24_forwardArgument = result.GetValue(Definition.CommandArgument);
Commands\Tool\Search\ToolSearchCommand.cs (1)
40searchTerm: _parseResult.GetValue(Definition.SearchTermArgument),
Commands\Tool\Store\StoreCommand.cs (1)
42msbuildArgs.AddRange(result.GetValue(definition.Argument) ?? []);
Commands\Tool\Uninstall\ToolUninstallGlobalOrToolPathCommand.cs (1)
53var packageId = new PackageId(_parseResult.GetValue(Definition.PackageIdArgument));
Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (1)
31_packageId = new PackageId(parseResult.GetValue(Definition.PackageIdArgument));
Commands\Tool\Update\ToolUpdateCommand.cs (1)
83if (!string.IsNullOrEmpty(parseResult.GetValue(Definition.PackageIdentityArgument)?.VersionRange?.OriginalString) &&
Commands\Workload\Install\WorkloadInstallCommand.cs (1)
51workloadIdArgument = parseResult.GetValue(installDef.WorkloadIdArgument);
Commands\Workload\Restore\WorkloadRestoreCommand.cs (1)
26_slnOrProjectArgument = result.GetValue(Definition.SlnOrProjectArgument);
Commands\Workload\Search\WorkloadSearchCommand.cs (1)
23_workloadIdStub = result.GetValue(Definition.WorkloadIdStubArgument);
Commands\Workload\Search\WorkloadSearchVersionsCommand.cs (1)
59_workloadVersion = result.GetValue(Definition.WorkloadVersionArgument);
Commands\Workload\Uninstall\WorkloadUninstallCommand.cs (1)
32_workloadIds = parseResult.GetValue(Definition.WorkloadIdArgument)
Extensions\ParseResultExtensions.cs (1)
102|| (parseResult.IsTopLevelDotnetCommand() && string.IsNullOrEmpty(parseResult.GetValue(Parser.RootCommand.DotnetSubCommand)));
Parser.cs (1)
373var arguments = context.ParseResult.GetValue(format.Arguments) ?? [];
Program.cs (1)
311string commandName = "dotnet-" + parseResult.GetValue(Parser.RootCommand.DotnetSubCommand);
dotnet-format (1)
Commands\FormatCommandCommon.cs (1)
314if (parseResult.GetValue<string>(SlnOrProjectArgument) is string { Length: > 0 } slnOrProject)
dotnet-sourcelink (4)
dotnet-suggest (1)
SuggestionDispatcher.cs (1)
31SuggestionShellScriptHandler.Handle(context.InvocationConfiguration.Output, context.GetValue(shellTypeArgument));
dotnet-watch (1)
Program.cs (1)
160if (runParseResult.GetValue(runCommandDefinition.ApplicationArguments) is not [var firstArg, ..])
ilasm (2)
Program.cs (2)
33string[]? inputFiles = _command.Result.GetValue(_command.InputFilePaths); 289private T Get<T>(Argument<T> argument) => _command.Result.GetValue(argument)!;
ilc (1)
Program.cs (1)
132typeSystemContext.InputFilePaths = _command.Result.GetValue(_command.InputFilePaths);
Microsoft.DotNet.Cli.Definitions (3)
Commands\Hidden\Add\AddReferenceCommandDefinition.cs (1)
26: parseResult.GetValue(Parent.ProjectOrFileArgument);
Commands\Hidden\List\ListReferenceCommandDefinition.cs (1)
22=> parseResult.GetValue(Parent.SlnOrProjectOrFileArgument);
Commands\Hidden\Remove\RemoveReferenceCommandDefinition.cs (1)
16=> parseResult.GetValue(Parent.ProjectOrFileArgument);
Microsoft.DotNet.MacOsPkg.Cli (5)
Program.cs (5)
49var srcPath = result.GetValue(unpackSrcArgument); 50var dstPath = result.GetValue(unpackDestinationArgument); 62var srcPath = result.GetValue(packSrcArgument); 63var dstPath = result.GetValue(packDstArgument); 74var srcPath = result.GetValue(pkgOrAppArgument);
Microsoft.TemplateEngine.Cli (9)
Commands\create\InstantiateCommandArgs.cs (2)
30RemainingArguments = parseResult.GetValue(command.Definition.RemainingArguments) ?? []; 31ShortName = parseResult.GetValue(command.Definition.ShortNameArgument);
Commands\details\DetailsCommandArgs.cs (1)
13string nameCriteria = parseResult.GetValue(detailsCommand.Definition.NameArgument)
Commands\install\InstallCommandArgs.cs (1)
19TemplatePackages = parseResult.GetValue(installCommand.Definition.NameArgument)!;
Commands\list\ListCommandArgs.cs (2)
14string? nameCriteria = parseResult.GetValue(command.Definition.NameArgument); 24string? newCommandArgument = parseResult.GetValue(newCommand.Definition.ShortNameArgument);
Commands\search\SearchCommandArgs.cs (2)
14string? nameCriteria = parseResult.GetValue(command.Definition.NameArgument); 23string? newCommandArgument = parseResult.GetValue(newCommand.Definition.ShortNameArgument);
Commands\uninstall\UninstallCommandArgs.cs (1)
15TemplatePackages = parseResult.GetValue(uninstallCommand.Definition.NameArgument) ?? [];
NuGet.CommandLine.XPlat (9)
Commands\ConfigCommands\ConfigCommand.cs (4)
162AllOrConfigKey = parseResult.GetValue(AllOrConfigKeyArgument), 183ConfigKey = parseResult.GetValue(SetConfigKeyArgument), 184ConfigValue = parseResult.GetValue(ConfigValueArgument), 203ConfigKey = parseResult.GetValue(UnsetConfigKeyArgument),
Commands\Package\Download\PackageDownloadCommand.cs (1)
80IReadOnlyList<PackageWithNuGetVersion> packages = parserResult.GetValue(packagesArguments) ?? [];
Commands\Package\Update\PackageUpdateCommand.cs (1)
52IReadOnlyList<PackageWithVersionRange> packages = args.GetValue(packagesArguments) ?? [];
Commands\PackageSearch\PackageSearchCommand.cs (1)
116SearchTerm = parserResult.GetValue(searchTerm),
Commands\Why\WhyCommand.cs (2)
128Path = parseResult.GetValue(path)!, 129Package = parseResult.GetValue(package)!,
System.CommandLine (1)
Parsing\SymbolResult.cs (1)
104/// <inheritdoc cref="ParseResult.GetValue{T}(Argument{T})"/>
System.CommandLine.StaticCompletions (1)
CompletionsCommandParser.cs (1)
37var shellName = args.GetValue(command.GenerateScriptCommand.ShellArgument) ?? throw new InvalidOperationException();