mirror of
https://github.com/icsharpcode/ILSpy.git
synced 2026-10-12 02:15:58 +00:00
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
23 lines
878 B
XML
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> |