94 references to Value
NuGet.CommandLine.XPlat (94)
Commands\DeleteCommand.cs (2)
69string sourcePath = source.Value(); 70string apiKeyValue = apikey.Value();
Commands\PackageReferenceCommands\AddPackageReferenceCommand.cs (8)
94var packageVersion = version.HasValue() ? version.Value() : null; 96var packageRefArgs = new PackageReferenceArgs(projectPath.Value(), logger) 100PackageDirectory = packageDirectory.Value(), 103DgFilePath = dgFilePath.Value(), 140if (!File.Exists(projectPath.Value()) 141|| (!projectPath.Value().EndsWith("proj", StringComparison.OrdinalIgnoreCase) 142&& virtualProjectBuilder?.IsValidEntryPointPath(projectPath.Value()) != true)) 147projectPath.Value()));
Commands\PackageReferenceCommands\ListPackage\ListPackageCommand.cs (4)
118setLogLevel(XPlatUtility.MSBuildVerbosityToNuGetLogLevel(verbosity.Value())); 120var settings = ProcessConfigFile(config.Value(), path.Value); 130IReportRenderer reportRenderer = GetOutputType(app.Out, app.Error, outputFormat.Value(), outputVersionOption: outputVersion.Value());
Commands\PackageReferenceCommands\RemovePackageReferenceCommand.cs (6)
53var packageRefArgs = new PackageReferenceArgs(projectPath.Value(), logger) 56PackageId = id.Value() 77if (!File.Exists(projectPath.Value()) 78|| (!projectPath.Value().EndsWith("proj", StringComparison.OrdinalIgnoreCase) 79&& virtualProjectBuilder?.IsValidEntryPointPath(projectPath.Value()) != true)) 84projectPath.Value()));
Commands\PushCommand.cs (6)
104string sourcePath = source.Value(); 105string apiKeyValue = apikey.Value(); 106string symbolSourcePath = symbolSource.Value(); 107string symbolApiKeyValue = symbolApiKey.Value(); 115if (timeout.HasValue() && !int.TryParse(timeout.Value(), out timeoutSeconds)) 121var sourceProvider = new PackageSourceProvider(XPlatUtility.ProcessConfigFile(configurationFile.Value()), enablePackageSourcesChangedEvent: false);
Commands\Signing\SignCommand.cs (26)
115HashAlgorithmName hashAlgorithm = CommandLineUtility.ParseAndValidateHashAlgorithm(algorithm.Value(), algorithm.LongName, signingSpec); 116HashAlgorithmName timestampHashAlgorithm = CommandLineUtility.ParseAndValidateHashAlgorithm(timestamperAlgorithm.Value(), timestamperAlgorithm.LongName, signingSpec); 121OutputDirectory = outputDirectory.Value(), 122CertificatePath = path.Value(), 125CertificateSubjectName = subject.Value(), 126CertificateFingerprint = fingerprint.Value(), 127CertificatePassword = password.Value(), 134Timestamper = timestamper.Value(), 138setLogLevel(XPlatUtility.MSBuildVerbosityToNuGetLogLevel(verbosity.Value())); 172string outputDir = output.Value(); 187if (!string.IsNullOrEmpty(location.Value()) && 188!Enum.TryParse(location.Value(), ignoreCase: true, result: out storeLocation)) 206if (!string.IsNullOrEmpty(store.Value()) && 207!Enum.TryParse(store.Value(), ignoreCase: true, result: out storeName)) 222if (string.IsNullOrEmpty(path.Value()) && 223string.IsNullOrEmpty(fingerprint.Value()) && 224string.IsNullOrEmpty(subject.Value())) 229else if (!string.IsNullOrEmpty(path.Value()) && 230(!string.IsNullOrEmpty(fingerprint.Value()) || 231!string.IsNullOrEmpty(subject.Value()) || 232!string.IsNullOrEmpty(location.Value()) || 233!string.IsNullOrEmpty(store.Value()))) 238else if (!string.IsNullOrEmpty(fingerprint.Value()) && !string.IsNullOrEmpty(subject.Value())) 243else if (fingerprint.Value() != null) 245bool isValidFingerprint = CertificateUtility.TryDeduceHashAlgorithm(fingerprint.Value(), out HashAlgorithmName hashAlgorithmName);
Commands\Signing\TrustedSignersCommand.cs (4)
212return await ExecuteCommand(TrustCommand.Source, algorithm: null, allowUntrustedRootOption: false, owners, verbosity, configFile, getLogger, setLogLevel, name: name.Value, sourceUrl: sourceUrl.Value()); 252ISettings settings = XPlatUtility.ProcessConfigFile(configFile.Value()); 261FingerprintAlgorithm = algorithm?.Value(), 269setLogLevel(XPlatUtility.MSBuildVerbosityToNuGetLogLevel(verbosity.Value()));
Commands\Signing\VerifyCommand.cs (2)
66args.Settings = XPlatUtility.ProcessConfigFile(configFile.Value()); 67setLogLevel(XPlatUtility.MSBuildVerbosityToNuGetLogLevel(verbosity.Value()));
Commands\Verbs.cs (36)
63Name = name.Value(), 64Username = username.Value(), 65Password = password.Value(), 67ValidAuthenticationTypes = validAuthenticationTypes.Value(), 68ProtocolVersion = protocolVersion.Value(), 69Configfile = configfile.Value(), 125PackageSource = packagesource.Value(), 126Path = path.Value(), 127Password = password.Value(), 129StoreLocation = storelocation.Value(), 130StoreName = storename.Value(), 131FindBy = findby.Value(), 132FindValue = findvalue.Value(), 134Configfile = configfile.Value(), 174Configfile = configfile.Value(), 214Configfile = configfile.Value(), 255Format = format.Value(), 256Configfile = configfile.Value(), 275Configfile = configfile.Value(), 315Configfile = configfile.Value(), 338PackageSource = packagesource.Value(), 339Configfile = configfile.Value(), 407Source = source.Value(), 408Username = username.Value(), 409Password = password.Value(), 411ValidAuthenticationTypes = validAuthenticationTypes.Value(), 412ProtocolVersion = protocolVersion.Value(), 413Configfile = configfile.Value(), 469PackageSource = packagesource.Value(), 470Path = path.Value(), 471Password = password.Value(), 473StoreLocation = storelocation.Value(), 474StoreName = storename.Value(), 475FindBy = findby.Value(), 476FindValue = findvalue.Value(), 478Configfile = configfile.Value(),