Files
ILSpy/Directory.Build.props
T
Siegfried Pammer 40a667fefb Treat warnings as errors repo-wide
A clean build currently has zero warnings; enforce that so new ones can't
accumulate unnoticed. Set TreatWarningsAsErrors in the root
Directory.Build.props rather than per project. ICSharpCode.ILSpyCmd keeps
its existing TreatWarningsAsErrors=false (project-level wins over the
imported default), and the three legacy net472 projects (the VS add-ins
and the installer builder) opt out explicitly since they only build on
Windows and aren't covered by the cross-platform CI that gates this.

Assisted-by: Claude:claude-opus-4-8:Claude Code
2026-06-10 00:11:56 +02:00

23 lines
878 B
XML

<Project>
<PropertyGroup>
<NoWarn>$(NoWarn);NU1510</NoWarn>
</PropertyGroup>
<PropertyGroup>
<!-- Warnings are errors repo-wide so a clean build stays clean; individual projects can opt
back out (e.g. ICSharpCode.ILSpyCmd sets TreatWarningsAsErrors=false) since project-level
properties override this imported default. -->
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup>
<EnableNUnitRunner>true</EnableNUnitRunner>
</PropertyGroup>
<PropertyGroup>
<!-- Generate and honour a packages.lock.json next to every project. The CI NuGet package
cache keys off these lock files; run updatedeps.ps1 to refresh them after changing a
PackageVersion in Directory.Packages.props. -->
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>
</Project>