1 write to _packArgs
NuGet.Commands (1)
CommandRunners\PackCommandRunner.cs (1)
75
_packArgs
= packArgs;
97 references to _packArgs
NuGet.Commands (97)
CommandRunners\PackCommandRunner.cs (97)
87
var result = BuildPackage(Path.GetFullPath(Path.Combine(
_packArgs
.CurrentDirectory,
_packArgs
.Path)));
116
outputPath = outputPath ?? GetOutputPath(builder,
_packArgs
, false, builder.Version);
121
(!
_packArgs
.UsingMicrosoftNETSdk ||
122
SdkAnalysisLevelMinimums.IsEnabled(
_packArgs
.SdkAnalysisLevel,
_packArgs
.UsingMicrosoftNETSdk, SdkAnalysisLevelMinimums.V11_0_100)) &&
125
_packArgs
.Logger.Log(
149
if (
_packArgs
.LogLevel == LogLevel.Verbose)
156
if (package != null && !
_packArgs
.NoPackageAnalysis && !symbolsPackage)
159
if (
_packArgs
.Logger is PackCollectorLogger collectorLogger)
173
if (
_packArgs
.InstallPackageToOutputPath)
175
_packArgs
.Logger.Log(
186
_packArgs
.Logger.Log(
201
string outputPath = GetOutputPath(builder,
_packArgs
, false, builder.Version);
208
_packArgs
.Logger.Log(
217
if (string.Equals(
_packArgs
.Path, resolvedNuSpecOutputPath, StringComparison.OrdinalIgnoreCase))
224
_packArgs
.Path));
251
string outputPath = GetOutputPath(builder,
_packArgs
, symbols: false, nugetVersion: builder.Version);
257
_packArgs
.Logger.Log(
289
if (!string.IsNullOrEmpty(
_packArgs
.Version))
291
builder.Version = new NuGetVersion(
_packArgs
.Version);
295
if (!string.IsNullOrEmpty(
_packArgs
.Suffix) && !builder.HasSnapshotVersion)
298
builder.Version = new NuGetVersion($"{version}-{
_packArgs
.Suffix}");
301
if (
_packArgs
.Serviceable)
306
if (
_packArgs
.MinClientVersion != null)
308
builder.MinClientVersion =
_packArgs
.MinClientVersion;
418
if (
_packArgs
.InstallPackageToOutputPath)
420
string outputPath = GetOutputPath(packageBuilder,
_packArgs
);
425
if (
_packArgs
.Symbols && packageBuilder.Files.Any())
444
if (
_packArgs
.Symbols)
456
if (!string.IsNullOrEmpty(
_packArgs
.Version))
458
_packArgs
.Properties["version"] =
_packArgs
.Version;
462
if (
_packArgs
.WarningProperties == null)
464
_packArgs
.WarningProperties = WarningProperties.GetWarningProperties(
465
treatWarningsAsErrors:
_packArgs
.GetPropertyValue("TreatWarningsAsErrors") ?? string.Empty,
466
warningsAsErrors:
_packArgs
.GetPropertyValue("WarningsAsErrors") ?? string.Empty,
467
noWarn:
_packArgs
.GetPropertyValue("NoWarn") ?? string.Empty,
468
warningsNotAsErrors:
_packArgs
.GetPropertyValue("WarningsNotAsErrors") ?? string.Empty);
469
_packArgs
.Logger = new PackCollectorLogger(
_packArgs
.Logger,
_packArgs
.WarningProperties);
472
if (string.IsNullOrEmpty(
_packArgs
.BasePath))
476
_packArgs
.GetPropertyValue,
477
!
_packArgs
.ExcludeEmptyDirectories,
478
_packArgs
.Deterministic,
479
_packArgs
.Logger,
480
_packArgs
.Version)
482
DeterministicTimestamp =
_packArgs
.DeterministicTimestamp,
488
_packArgs
.BasePath,
489
_packArgs
.GetPropertyValue,
490
!
_packArgs
.ExcludeEmptyDirectories,
491
_packArgs
.Deterministic,
492
_packArgs
.Logger,
493
_packArgs
.Version)
495
DeterministicTimestamp =
_packArgs
.DeterministicTimestamp,
502
if ((string.IsNullOrEmpty(
_packArgs
.MsBuildDirectory?.Value)
503
|| _createProjectFactory == null) &&
_packArgs
.PackTargetArgs == null)
509
IProjectFactory factory = _createProjectFactory.Invoke(
_packArgs
, path);
510
if (
_packArgs
.WarningProperties == null &&
_packArgs
.PackTargetArgs == null)
512
_packArgs
.WarningProperties = factory.GetWarningPropertiesForProject();
514
_packArgs
.Logger = new PackCollectorLogger(
_packArgs
.Logger,
_packArgs
.WarningProperties);
515
factory.Logger =
_packArgs
.Logger;
519
foreach (KeyValuePair<string, string> property in
_packArgs
.Properties)
523
_packArgs
.Logger.Log(PackagingLogMessage.CreateWarning(
531
if (
_packArgs
.Version != null)
533
version = new NuGetVersion(
_packArgs
.Version);
538
_packArgs
.BasePath,
540
_packArgs
.Suffix,
557
if (
_packArgs
.InstallPackageToOutputPath)
559
string outputPath = GetOutputPath(mainPackageBuilder,
_packArgs
);
568
if (!
_packArgs
.Symbols ||
_packArgs
.InstallPackageToOutputPath)
574
if (
_packArgs
.Symbols)
579
if (
_packArgs
.Version != null)
581
argsVersion = new NuGetVersion(
_packArgs
.Version);
586
_packArgs
.BasePath,
588
_packArgs
.Suffix,
593
if (
_packArgs
.SymbolPackageFormat == SymbolPackageFormat.Snupkg) // Snupkgs can only have 1 PackageType.
600
string outputPath = GetOutputPath(symbolsBuilder,
_packArgs
, symbols: true);
677
if (!
_packArgs
.NoDefaultExcludes)
688
_packArgs
.Logger.Log(
700
wildCards = wildCards.Concat(
_packArgs
.Exclude);
707
string basePath = string.IsNullOrEmpty(
_packArgs
.BasePath) ?
_packArgs
.CurrentDirectory :
_packArgs
.BasePath;
731
string basePath = string.IsNullOrEmpty(
_packArgs
.BasePath) ?
_packArgs
.CurrentDirectory :
_packArgs
.BasePath;
763
if (
_packArgs
.SymbolPackageFormat == SymbolPackageFormat.Snupkg) // Snupkgs can only have 1 PackageType.
773
ExcludeFilesForSymbolPackage(symbolsBuilder.Files,
_packArgs
.SymbolPackageFormat);
789
string outputPath = GetOutputPath(symbolsBuilder,
_packArgs
, symbols: true);
816
_packArgs
.Logger.Log(message);
999
_packArgs
.Logger.Log(