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