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();
21 references to ProjectWideWarningProperties
NuGet.CommandLine.XPlat (2)
Commands\Package\Update\PackageUpdateCommandRunner.cs (2)
273WarningProperties warningProperties = projectClone.RestoreMetadata.ProjectWideWarningProperties; 293WarningProperties warningProperties = project.RestoreMetadata.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)
316if (msbuildMetadata.ProjectWideWarningProperties != null && 317(msbuildMetadata.ProjectWideWarningProperties.AllWarningsAsErrors || 318msbuildMetadata.ProjectWideWarningProperties.NoWarn.Count > 0 || 319msbuildMetadata.ProjectWideWarningProperties.WarningsAsErrors.Count > 0)) 323SetValueIfTrue(writer, "allWarningsAsErrors", msbuildMetadata.ProjectWideWarningProperties.AllWarningsAsErrors); 325if (msbuildMetadata.ProjectWideWarningProperties.NoWarn.Count > 0) 328.ProjectWideWarningProperties 335if (msbuildMetadata.ProjectWideWarningProperties.WarningsAsErrors.Count > 0) 338.ProjectWideWarningProperties 345if (msbuildMetadata.ProjectWideWarningProperties.WarningsNotAsErrors.Count > 0) 348.ProjectWideWarningProperties
ProjectRestoreMetadata.cs (4)
188hashCode.AddObject(ProjectWideWarningProperties); 239EqualityUtility.EqualsWithNullCheck(ProjectWideWarningProperties, other.ProjectWideWarningProperties) && 294clone.ProjectWideWarningProperties = ProjectWideWarningProperties?.Clone();