3 writes to AllWarningsAsErrors
NuGet.ProjectModel (3)
WarningProperties.cs (3)
41AllWarningsAsErrors = false; 49AllWarningsAsErrors = allWarningsAsErrors; 108AllWarningsAsErrors = MSBuildStringUtility.IsTrue(treatWarningsAsErrors)
8 references to AllWarningsAsErrors
NuGet.Commands (2)
RestoreCommand\Logging\WarningPropertiesCollection.cs (1)
168if ((warningProperties.AllWarningsAsErrors && message.Code > NuGetLogCode.Undefined && !warningProperties.WarningsNotAsErrors.Contains(message.Code)) ||
RestoreCommand\RestoreCommand.cs (1)
391telemetry.TelemetryEvent[TreatWarningsAsErrors] = _request.Project.RestoreMetadata.ProjectWideWarningProperties.AllWarningsAsErrors;
NuGet.ProjectModel (6)
PackageSpecWriter.cs (2)
311(msbuildMetadata.ProjectWideWarningProperties.AllWarningsAsErrors || 317SetValueIfTrue(writer, "allWarningsAsErrors", msbuildMetadata.ProjectWideWarningProperties.AllWarningsAsErrors);
WarningProperties.cs (4)
57hashCode.AddObject(AllWarningsAsErrors); 82return AllWarningsAsErrors == other.AllWarningsAsErrors && 90return new WarningProperties(warningsAsErrors: new HashSet<NuGetLogCode>(WarningsAsErrors), noWarn: new HashSet<NuGetLogCode>(NoWarn), allWarningsAsErrors: AllWarningsAsErrors, warningsNotAsErrors: WarningsNotAsErrors);