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));
248
string outputPath = GetOutputPath(builder,
_packArgs
, symbols: false, nugetVersion: builder.Version);
260
_packArgs
.Logger.Log(
283
if (!string.IsNullOrEmpty(
_packArgs
.Version))
285
builder.Version = new NuGetVersion(
_packArgs
.Version);
289
if (!string.IsNullOrEmpty(
_packArgs
.Suffix) && !builder.HasSnapshotVersion)
292
builder.Version = new NuGetVersion($"{version}-{
_packArgs
.Suffix}");
295
if (
_packArgs
.Serviceable)
300
if (
_packArgs
.MinClientVersion != null)
302
builder.MinClientVersion =
_packArgs
.MinClientVersion;
412
if (
_packArgs
.InstallPackageToOutputPath)
414
string outputPath = GetOutputPath(packageBuilder,
_packArgs
);
419
if (
_packArgs
.Symbols && packageBuilder.Files.Any())
438
if (
_packArgs
.Symbols)
450
if (!string.IsNullOrEmpty(
_packArgs
.Version))
452
_packArgs
.Properties["version"] =
_packArgs
.Version;
456
if (
_packArgs
.WarningProperties == null)
458
_packArgs
.WarningProperties = WarningProperties.GetWarningProperties(
459
treatWarningsAsErrors:
_packArgs
.GetPropertyValue("TreatWarningsAsErrors") ?? string.Empty,
460
warningsAsErrors:
_packArgs
.GetPropertyValue("WarningsAsErrors") ?? string.Empty,
461
noWarn:
_packArgs
.GetPropertyValue("NoWarn") ?? string.Empty,
462
warningsNotAsErrors:
_packArgs
.GetPropertyValue("WarningsNotAsErrors") ?? string.Empty);
463
_packArgs
.Logger = new PackCollectorLogger(
_packArgs
.Logger,
_packArgs
.WarningProperties);
466
if (string.IsNullOrEmpty(
_packArgs
.BasePath))
470
_packArgs
.GetPropertyValue,
471
!
_packArgs
.ExcludeEmptyDirectories,
472
_packArgs
.Deterministic,
473
_packArgs
.Logger,
474
_packArgs
.Version)
476
DeterministicTimestamp =
_packArgs
.DeterministicTimestamp,
482
_packArgs
.BasePath,
483
_packArgs
.GetPropertyValue,
484
!
_packArgs
.ExcludeEmptyDirectories,
485
_packArgs
.Deterministic,
486
_packArgs
.Logger,
487
_packArgs
.Version)
489
DeterministicTimestamp =
_packArgs
.DeterministicTimestamp,
496
if ((string.IsNullOrEmpty(
_packArgs
.MsBuildDirectory?.Value)
497
|| _createProjectFactory == null) &&
_packArgs
.PackTargetArgs == null)
503
IProjectFactory factory = _createProjectFactory.Invoke(
_packArgs
, path);
504
if (
_packArgs
.WarningProperties == null &&
_packArgs
.PackTargetArgs == null)
506
_packArgs
.WarningProperties = factory.GetWarningPropertiesForProject();
508
_packArgs
.Logger = new PackCollectorLogger(
_packArgs
.Logger,
_packArgs
.WarningProperties);
509
factory.Logger =
_packArgs
.Logger;
513
foreach (KeyValuePair<string, string> property in
_packArgs
.Properties)
517
_packArgs
.Logger.Log(PackagingLogMessage.CreateWarning(
525
if (
_packArgs
.Version != null)
527
version = new NuGetVersion(
_packArgs
.Version);
532
_packArgs
.BasePath,
534
_packArgs
.Suffix,
551
if (
_packArgs
.InstallPackageToOutputPath)
553
string outputPath = GetOutputPath(mainPackageBuilder,
_packArgs
);
562
if (!
_packArgs
.Symbols ||
_packArgs
.InstallPackageToOutputPath)
568
if (
_packArgs
.Symbols)
573
if (
_packArgs
.Version != null)
575
argsVersion = new NuGetVersion(
_packArgs
.Version);
580
_packArgs
.BasePath,
582
_packArgs
.Suffix,
587
if (
_packArgs
.SymbolPackageFormat == SymbolPackageFormat.Snupkg) // Snupkgs can only have 1 PackageType.
594
string outputPath = GetOutputPath(symbolsBuilder,
_packArgs
, symbols: true);
671
if (!
_packArgs
.NoDefaultExcludes)
682
_packArgs
.Logger.Log(
694
wildCards = wildCards.Concat(
_packArgs
.Exclude);
701
string basePath = string.IsNullOrEmpty(
_packArgs
.BasePath) ?
_packArgs
.CurrentDirectory :
_packArgs
.BasePath;
725
string basePath = string.IsNullOrEmpty(
_packArgs
.BasePath) ?
_packArgs
.CurrentDirectory :
_packArgs
.BasePath;
757
if (
_packArgs
.SymbolPackageFormat == SymbolPackageFormat.Snupkg) // Snupkgs can only have 1 PackageType.
767
ExcludeFilesForSymbolPackage(symbolsBuilder.Files,
_packArgs
.SymbolPackageFormat);
780
string outputPath = GetOutputPath(symbolsBuilder,
_packArgs
, symbols: true);
809
_packArgs
.Logger.Log(message);
992
_packArgs
.Logger.Log(