6 writes to ProjectWideWarningProperties
NuGet.Build.Tasks.Console (1)
MSBuildStaticGraphRestore.cs (1)
1184restoreMetadata.ProjectWideWarningProperties = WarningProperties.GetWarningProperties(project.GetProperty("TreatWarningsAsErrors"), project.GetProperty("WarningsAsErrors"), project.GetProperty("NoWarn"), project.GetProperty("WarningsNotAsErrors"));
NuGet.Commands (3)
RestoreCommand\Utility\MSBuildRestoreUtility.cs (1)
296result.RestoreMetadata.ProjectWideWarningProperties = GetWarningProperties(specItem);
RestoreCommand\Utility\PackageSpecFactory.cs (1)
185restoreMetadata.ProjectWideWarningProperties = WarningProperties.GetWarningProperties(outerBuild.GetProperty("TreatWarningsAsErrors"), outerBuild.GetProperty("WarningsAsErrors"), outerBuild.GetProperty("NoWarn"), outerBuild.GetProperty("WarningsNotAsErrors"));
RestoreCommand\Utility\ToolRestoreUtility.cs (1)
70ProjectWideWarningProperties = projectWideWarningProperties ?? new WarningProperties()
NuGet.ProjectModel (2)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (1)
1137msbuildMetadata.ProjectWideWarningProperties = warningProperties;
ProjectRestoreMetadata.cs (1)
294clone.ProjectWideWarningProperties = ProjectWideWarningProperties?.Clone();
19 references to ProjectWideWarningProperties
NuGet.Commands (4)
RestoreCommand\Logging\RestoreCollectorLogger.cs (1)
71projectSpec.RestoreMetadata?.ProjectWideWarningProperties,
RestoreCommand\Logging\TransitiveNoWarnUtils.cs (2)
34parentProjectSpec.RestoreMetadata?.ProjectWideWarningProperties, 253nodeProjectSpec.RestoreMetadata?.ProjectWideWarningProperties,
RestoreCommand\RestoreCommand.cs (1)
403telemetry.TelemetryEvent[TreatWarningsAsErrors] = _request.Project.RestoreMetadata.ProjectWideWarningProperties.AllWarningsAsErrors;
NuGet.ProjectModel (15)
PackageSpecWriter.cs (11)
311if (msbuildMetadata.ProjectWideWarningProperties != null && 312(msbuildMetadata.ProjectWideWarningProperties.AllWarningsAsErrors || 313msbuildMetadata.ProjectWideWarningProperties.NoWarn.Count > 0 || 314msbuildMetadata.ProjectWideWarningProperties.WarningsAsErrors.Count > 0)) 318SetValueIfTrue(writer, "allWarningsAsErrors", msbuildMetadata.ProjectWideWarningProperties.AllWarningsAsErrors); 320if (msbuildMetadata.ProjectWideWarningProperties.NoWarn.Count > 0) 323.ProjectWideWarningProperties 330if (msbuildMetadata.ProjectWideWarningProperties.WarningsAsErrors.Count > 0) 333.ProjectWideWarningProperties 340if (msbuildMetadata.ProjectWideWarningProperties.WarningsNotAsErrors.Count > 0) 343.ProjectWideWarningProperties
ProjectRestoreMetadata.cs (4)
188hashCode.AddObject(ProjectWideWarningProperties); 239EqualityUtility.EqualsWithNullCheck(ProjectWideWarningProperties, other.ProjectWideWarningProperties) && 294clone.ProjectWideWarningProperties = ProjectWideWarningProperties?.Clone();