2 writes to WarningsNotAsErrors
NuGet.ProjectModel (2)
WarningProperties.cs (2)
42WarningsNotAsErrors = new HashSet<NuGetLogCode>(); 50WarningsNotAsErrors = warningsNotAsErrors ?? throw new ArgumentNullException(nameof(warningsNotAsErrors));
8 references to WarningsNotAsErrors
NuGet.Commands (1)
RestoreCommand\Logging\WarningPropertiesCollection.cs (1)
168if ((warningProperties.AllWarningsAsErrors && message.Code > NuGetLogCode.Undefined && !warningProperties.WarningsNotAsErrors.Contains(message.Code)) ||
NuGet.ProjectModel (7)
PackageSpecWriter.cs (2)
339if (msbuildMetadata.ProjectWideWarningProperties.WarningsNotAsErrors.Count > 0) 343.WarningsNotAsErrors
WarningProperties.cs (5)
60hashCode.AddUnorderedSequence(WarningsNotAsErrors); 85EqualityUtility.SetEqualsWithNullCheck(WarningsNotAsErrors, other.WarningsNotAsErrors); 90return new WarningProperties(warningsAsErrors: new HashSet<NuGetLogCode>(WarningsAsErrors), noWarn: new HashSet<NuGetLogCode>(NoWarn), allWarningsAsErrors: AllWarningsAsErrors, warningsNotAsErrors: WarningsNotAsErrors); 113props.WarningsNotAsErrors.UnionWith(warningsNotAsErrors);