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