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