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