6 writes to ProjectWideWarningProperties
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.Commands (3)
RestoreCommand\Utility\MSBuildRestoreUtility.cs (1)
262result.RestoreMetadata.ProjectWideWarningProperties = GetWarningProperties(specItem);
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)
70ProjectWideWarningProperties = projectWideWarningProperties ?? new WarningProperties()
NuGet.ProjectModel (2)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (1)
1130msbuildMetadata.ProjectWideWarningProperties = warningProperties;
ProjectRestoreMetadata.cs (1)
285clone.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)
391telemetry.TelemetryEvent[TreatWarningsAsErrors] = _request.Project.RestoreMetadata.ProjectWideWarningProperties.AllWarningsAsErrors;
NuGet.ProjectModel (15)
PackageSpecWriter.cs (11)
310if (msbuildMetadata.ProjectWideWarningProperties != null && 311(msbuildMetadata.ProjectWideWarningProperties.AllWarningsAsErrors || 312msbuildMetadata.ProjectWideWarningProperties.NoWarn.Count > 0 || 313msbuildMetadata.ProjectWideWarningProperties.WarningsAsErrors.Count > 0)) 317SetValueIfTrue(writer, "allWarningsAsErrors", msbuildMetadata.ProjectWideWarningProperties.AllWarningsAsErrors); 319if (msbuildMetadata.ProjectWideWarningProperties.NoWarn.Count > 0) 322.ProjectWideWarningProperties 329if (msbuildMetadata.ProjectWideWarningProperties.WarningsAsErrors.Count > 0) 332.ProjectWideWarningProperties 339if (msbuildMetadata.ProjectWideWarningProperties.WarningsNotAsErrors.Count > 0) 342.ProjectWideWarningProperties
ProjectRestoreMetadata.cs (4)
181hashCode.AddObject(ProjectWideWarningProperties); 231EqualityUtility.EqualsWithNullCheck(ProjectWideWarningProperties, other.ProjectWideWarningProperties) && 285clone.ProjectWideWarningProperties = ProjectWideWarningProperties?.Clone();