Solution build fails on main: NU1903 advisory on Microsoft.DotNet.ILCompiler 10.0.5 (DelmiaNotifier) #82

Closed
opened 2026-11-06 16:09:22 -05:00 by dohertj2 · 2 comments
Owner

dotnet build ZB.MOM.WW.ScadaBridge.slnx on main (0e89966d / a5c3de63) fails restore with NU1903, a vulnerability advisory against Microsoft.DotNet.ILCompiler 10.0.5 pulled in by the DelmiaNotifier (AOT) project; warnings are treated as errors. Found while working #58; that work built with the advisory downgraded locally. Fix: move to a patched .NET 10 SDK/ILCompiler (or pin a patched version). Do not suppress the advisory.

`dotnet build ZB.MOM.WW.ScadaBridge.slnx` on `main` (0e89966d / a5c3de63) fails restore with NU1903, a vulnerability advisory against `Microsoft.DotNet.ILCompiler` 10.0.5 pulled in by the DelmiaNotifier (AOT) project; warnings are treated as errors. Found while working #58; that work built with the advisory downgraded locally. Fix: move to a patched .NET 10 SDK/ILCompiler (or pin a patched version). Do not suppress the advisory.
dohertj2 added the type:bugpriority:p1 labels 2026-11-06 16:09:22 -05:00
Author
Owner

Diagnosis: the repo has no global.json. The Mac's Homebrew SDK is 10.0.105, which bundles runtime and ILCompiler 10.0.5; nuget.org has ILCompiler up to 10.0.14, and Homebrew offers SDK 10.0.403. This is environment drift, not a repo pin. Fix: upgrade the dev and CI SDKs (Homebrew dotnet, and the Gitea runner image). Optionally add a global.json with rollForward: latestFeature and a minimum patched SDK so the requirement is explicit. The same advisory class also broke old historiangw main (System.Security.Cryptography.Pkcs).

Diagnosis: the repo has no `global.json`. The Mac's Homebrew SDK is 10.0.105, which bundles runtime and ILCompiler 10.0.5; nuget.org has ILCompiler up to 10.0.14, and Homebrew offers SDK 10.0.403. This is environment drift, not a repo pin. Fix: upgrade the dev and CI SDKs (Homebrew `dotnet`, and the Gitea runner image). Optionally add a `global.json` with `rollForward: latestFeature` and a minimum patched SDK so the requirement is explicit. The same advisory class also broke old historiangw `main` (System.Security.Cryptography.Pkcs).
Author
Owner

Fixed 2026-11-06 by upgrading the dev Mac's Homebrew SDK from 10.0.105 to 10.0.403 (runtime 10.0.14). dotnet build ZB.MOM.WW.ScadaBridge.slnx now succeeds with 0 warnings and 0 errors, without suppressing the advisory. ScadaBridge has no .gitea/workflows, so there is no CI image to update.

Fixed 2026-11-06 by upgrading the dev Mac's Homebrew SDK from 10.0.105 to 10.0.403 (runtime 10.0.14). `dotnet build ZB.MOM.WW.ScadaBridge.slnx` now succeeds with 0 warnings and 0 errors, without suppressing the advisory. ScadaBridge has no `.gitea/workflows`, so there is no CI image to update.
Sign in to join this conversation.