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