build: freeze .NET builds at zero warnings (warnings-as-errors)

Repo-wide Directory.Build.props: TreatWarningsAsErrors +
MSBuildTreatWarningsAsErrors. Applies to compiler, MSBuild and NuGet
restore warnings including audit advisories (NU1901-NU1904) - a newly
published CVE fails the build until addressed (fail-closed).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Oliver Kieselbach
2026-08-13 09:44:40 +02:00
parent 35cea4fe64
commit 3fbdc8ef62
+11
View File
@@ -0,0 +1,11 @@
<Project>
<!-- Warning freeze (2026-08-13, backlog cleared to zero): every .NET build in this repo
must stay warning-free. Compiler, MSBuild and NuGet restore warnings are all fatal.
Deliberately includes NuGet audit advisories (NU1901-NU1904): a newly published CVE
against a referenced package fails the build until it is bumped or mitigated
(fail-closed, same philosophy as the ops alert chain). -->
<PropertyGroup>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<MSBuildTreatWarningsAsErrors>true</MSBuildTreatWarningsAsErrors>
</PropertyGroup>
</Project>