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