1 write to _packArgs
NuGet.Commands (1)
CommandRunners\PackCommandRunner.cs (1)
75
_packArgs
= packArgs;
93 references to _packArgs
NuGet.Commands (93)
CommandRunners\PackCommandRunner.cs (93)
87
var result = BuildPackage(Path.GetFullPath(Path.Combine(
_packArgs
.CurrentDirectory,
_packArgs
.Path)));
116
outputPath = outputPath ?? GetOutputPath(builder,
_packArgs
, false, builder.Version);
137
if (
_packArgs
.LogLevel == LogLevel.Verbose)
144
if (package != null && !
_packArgs
.NoPackageAnalysis && !symbolsPackage)
147
if (
_packArgs
.Logger is PackCollectorLogger collectorLogger)
161
if (
_packArgs
.InstallPackageToOutputPath)
163
_packArgs
.Logger.Log(
174
_packArgs
.Logger.Log(
189
string outputPath = GetOutputPath(builder,
_packArgs
, false, builder.Version);
196
_packArgs
.Logger.Log(
205
if (string.Equals(
_packArgs
.Path, resolvedNuSpecOutputPath, StringComparison.OrdinalIgnoreCase))
212
_packArgs
.Path));
236
string outputPath = GetOutputPath(builder,
_packArgs
, symbols: false, nugetVersion: builder.Version);
248
_packArgs
.Logger.Log(
271
if (!string.IsNullOrEmpty(
_packArgs
.Version))
273
builder.Version = new NuGetVersion(
_packArgs
.Version);
277
if (!string.IsNullOrEmpty(
_packArgs
.Suffix) && !builder.HasSnapshotVersion)
280
builder.Version = new NuGetVersion($"{version}-{
_packArgs
.Suffix}");
283
if (
_packArgs
.Serviceable)
288
if (
_packArgs
.MinClientVersion != null)
290
builder.MinClientVersion =
_packArgs
.MinClientVersion;
400
if (
_packArgs
.InstallPackageToOutputPath)
402
string outputPath = GetOutputPath(packageBuilder,
_packArgs
);
407
if (
_packArgs
.Symbols && packageBuilder.Files.Any())
426
if (
_packArgs
.Symbols)
438
if (!string.IsNullOrEmpty(
_packArgs
.Version))
440
_packArgs
.Properties["version"] =
_packArgs
.Version;
444
if (
_packArgs
.WarningProperties == null)
446
_packArgs
.WarningProperties = WarningProperties.GetWarningProperties(
447
treatWarningsAsErrors:
_packArgs
.GetPropertyValue("TreatWarningsAsErrors") ?? string.Empty,
448
warningsAsErrors:
_packArgs
.GetPropertyValue("WarningsAsErrors") ?? string.Empty,
449
noWarn:
_packArgs
.GetPropertyValue("NoWarn") ?? string.Empty,
450
warningsNotAsErrors:
_packArgs
.GetPropertyValue("WarningsNotAsErrors") ?? string.Empty);
451
_packArgs
.Logger = new PackCollectorLogger(
_packArgs
.Logger,
_packArgs
.WarningProperties);
454
if (string.IsNullOrEmpty(
_packArgs
.BasePath))
458
_packArgs
.GetPropertyValue,
459
!
_packArgs
.ExcludeEmptyDirectories,
460
_packArgs
.Deterministic,
461
_packArgs
.Logger,
462
_packArgs
.Version)
464
DeterministicTimestamp =
_packArgs
.DeterministicTimestamp,
470
_packArgs
.BasePath,
471
_packArgs
.GetPropertyValue,
472
!
_packArgs
.ExcludeEmptyDirectories,
473
_packArgs
.Deterministic,
474
_packArgs
.Logger,
475
_packArgs
.Version)
477
DeterministicTimestamp =
_packArgs
.DeterministicTimestamp,
484
if ((string.IsNullOrEmpty(
_packArgs
.MsBuildDirectory?.Value)
485
|| _createProjectFactory == null) &&
_packArgs
.PackTargetArgs == null)
491
IProjectFactory factory = _createProjectFactory.Invoke(
_packArgs
, path);
492
if (
_packArgs
.WarningProperties == null &&
_packArgs
.PackTargetArgs == null)
494
_packArgs
.WarningProperties = factory.GetWarningPropertiesForProject();
496
_packArgs
.Logger = new PackCollectorLogger(
_packArgs
.Logger,
_packArgs
.WarningProperties);
497
factory.Logger =
_packArgs
.Logger;
501
foreach (KeyValuePair<string, string> property in
_packArgs
.Properties)
505
_packArgs
.Logger.Log(PackagingLogMessage.CreateWarning(
513
if (
_packArgs
.Version != null)
515
version = new NuGetVersion(
_packArgs
.Version);
520
_packArgs
.BasePath,
522
_packArgs
.Suffix,
539
if (
_packArgs
.InstallPackageToOutputPath)
541
string outputPath = GetOutputPath(mainPackageBuilder,
_packArgs
);
550
if (!
_packArgs
.Symbols ||
_packArgs
.InstallPackageToOutputPath)
556
if (
_packArgs
.Symbols)
561
if (
_packArgs
.Version != null)
563
argsVersion = new NuGetVersion(
_packArgs
.Version);
568
_packArgs
.BasePath,
570
_packArgs
.Suffix,
575
if (
_packArgs
.SymbolPackageFormat == SymbolPackageFormat.Snupkg) // Snupkgs can only have 1 PackageType.
582
string outputPath = GetOutputPath(symbolsBuilder,
_packArgs
, symbols: true);
659
if (!
_packArgs
.NoDefaultExcludes)
670
_packArgs
.Logger.Log(
682
wildCards = wildCards.Concat(
_packArgs
.Exclude);
689
string basePath = string.IsNullOrEmpty(
_packArgs
.BasePath) ?
_packArgs
.CurrentDirectory :
_packArgs
.BasePath;
713
string basePath = string.IsNullOrEmpty(
_packArgs
.BasePath) ?
_packArgs
.CurrentDirectory :
_packArgs
.BasePath;
745
if (
_packArgs
.SymbolPackageFormat == SymbolPackageFormat.Snupkg) // Snupkgs can only have 1 PackageType.
755
ExcludeFilesForSymbolPackage(symbolsBuilder.Files,
_packArgs
.SymbolPackageFormat);
768
string outputPath = GetOutputPath(symbolsBuilder,
_packArgs
, symbols: true);
797
_packArgs
.Logger.Log(message);
980
_packArgs
.Logger.Log(