6 instantiations of WarningProperties
NuGet.Build.Tasks (1)
CheckForDuplicateNuGetItemsTask.cs (1)
90return new WarningProperties(warnAsErrorCodes, noWarnCodes, allWarningsAsErrors, warningNotAsErrorsCodes);
NuGet.Commands (1)
RestoreCommand\Utility\ToolRestoreUtility.cs (1)
70ProjectWideWarningProperties = projectWideWarningProperties ?? new WarningProperties()
NuGet.ProjectModel (4)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (1)
1006warningProperties = new WarningProperties(warnAsError, noWarn, allWarningsAsErrors, warningsNotAsErrors);
ProjectRestoreMetadata.cs (1)
115public WarningProperties ProjectWideWarningProperties { get; set; } = new WarningProperties();
WarningProperties.cs (2)
90return new WarningProperties(warningsAsErrors: new HashSet<NuGetLogCode>(WarningsAsErrors), noWarn: new HashSet<NuGetLogCode>(NoWarn), allWarningsAsErrors: AllWarningsAsErrors, warningsNotAsErrors: WarningsNotAsErrors); 106var props = new WarningProperties()
27 references to WarningProperties
NuGet.Build.Tasks (1)
CheckForDuplicateNuGetItemsTask.cs (1)
80private WarningProperties EvaluateWarningProperties(string warningsAsErrors, string noWarn, string treatWarningsAsErrors, string warningsNotAsErrors)
NuGet.Build.Tasks.Console (1)
MSBuildStaticGraphRestore.cs (1)
1079restoreMetadata.ProjectWideWarningProperties = WarningProperties.GetWarningProperties(project.GetProperty("TreatWarningsAsErrors"), project.GetProperty("WarningsAsErrors"), project.GetProperty("NoWarn"), project.GetProperty("WarningsNotAsErrors"));
NuGet.Build.Tasks.Pack (1)
PackTaskLogic.cs (1)
47WarningProperties = WarningProperties.GetWarningProperties(request.TreatWarningsAsErrors, request.WarningsAsErrors, request.NoWarn, request.WarningsNotAsErrors),
NuGet.Commands (15)
CommandArgs\PackArgs.cs (1)
49public WarningProperties WarningProperties { get; set; }
CommandRunners\PackCommandRunner.cs (1)
446_packArgs.WarningProperties = WarningProperties.GetWarningProperties(
IProjectFactory.cs (1)
16WarningProperties GetWarningPropertiesForProject();
MSBuildProjectFactory.cs (1)
294public WarningProperties GetWarningPropertiesForProject()
PackCollectorLogger.cs (3)
20public WarningProperties WarningProperties { get; set; } 27public PackCollectorLogger(ILogger innerLogger, WarningProperties warningProperties) 30public PackCollectorLogger(ILogger innerLogger, WarningProperties warningProperties, PackCommand.PackageSpecificWarningProperties packageSpecificWarningProperties)
RestoreCommand\Logging\WarningPropertiesCollection.cs (4)
35public WarningProperties ProjectWideWarningProperties { get; } 43public WarningPropertiesCollection(WarningProperties projectWideWarningProperties, 140public static bool ApplyProjectWideNoWarnProperties(ILogMessage message, WarningProperties warningProperties) 159public static void ApplyProjectWideWarningsAsErrorProperties(ILogMessage message, WarningProperties warningProperties)
RestoreCommand\Utility\MSBuildRestoreUtility.cs (2)
979private static WarningProperties GetWarningProperties(IMSBuildItem specItem) 981return WarningProperties.GetWarningProperties(
RestoreCommand\Utility\PackageSpecFactory.cs (1)
344restoreMetadata.ProjectWideWarningProperties = WarningProperties.GetWarningProperties(outerBuild.GetProperty("TreatWarningsAsErrors"), outerBuild.GetProperty("WarningsAsErrors"), outerBuild.GetProperty("NoWarn"), outerBuild.GetProperty("WarningsNotAsErrors"));
RestoreCommand\Utility\ToolRestoreUtility.cs (1)
24public static PackageSpec GetSpec(string projectFilePath, string id, VersionRange versionRange, NuGetFramework framework, string packagesPath, IList<string> fallbackFolders, IList<PackageSource> sources, WarningProperties projectWideWarningProperties)
NuGet.ProjectModel (9)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (1)
772WarningProperties warningProperties = null;
ProjectRestoreMetadata.cs (1)
115public WarningProperties ProjectWideWarningProperties { get; set; } = new WarningProperties();
WarningProperties.cs (7)
15public class WarningProperties : IEquatable<WarningProperties> 67return Equals(obj as WarningProperties); 70public bool Equals(WarningProperties? other) 88public WarningProperties Clone() 96public static WarningProperties GetWarningProperties(string? treatWarningsAsErrors, string? warningsAsErrors, string? noWarn, string? warningsNotAsErrors) 104public static WarningProperties GetWarningProperties(string? treatWarningsAsErrors, ImmutableArray<NuGetLogCode> warningsAsErrors, ImmutableArray<NuGetLogCode> noWarn, ImmutableArray<NuGetLogCode> warningsNotAsErrors) 106var props = new WarningProperties()