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