Commit 2e8fab4
test(aot): build with (MSBuild)TreatWarningsAsErrors to catch warnings (#5125)
* test(aot): build with MSBuildTreatWarningsAsErrors
Projects using MSBuildTreatWarningsAsErrors=true would fail to publish
with Native AOT due to warnings. Add a test to prevent such warnings
slipping in.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* test(aot): fold warnings-as-errors into the main Aot test
Enable both TreatWarningsAsErrors and MSBuildTreatWarningsAsErrors in the
main Aot publish test (all platforms) and drop the separate Windows-only
MSBuildTreatWarningsAsErrors block. Portable PDBs make the original
Windows-only scoping unnecessary, and reusing the existing test avoids a
second publish while also exercising the resulting binary at runtime.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent f83537b commit 2e8fab4
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
57 | 65 | | |
58 | 66 | | |
59 | 67 | | |
| |||
0 commit comments