Stop file-based scripts restoring the ILCompiler package #216

Merged
rob merged 1 commit from fix-script-ilcompiler-advisory into main 2026-11-20 22:08:37 +00:00
Collaborator

Fixes a break on main: the "Enforce the coverage ratchet" step fails with NU1903 because file-based apps default to PublishAot=true, so SDK 10.0.100 implicitly restores Microsoft.DotNet.ILCompiler 10.0.0 (GHSA-p3jp-9v83-76w9). The scripts are only run, never published, so all four now set #:property PublishAot=false.

The IDE0055 suppression in .editorconfig, previously scoped to the Playwright probe, now covers scripts/*.cs, because the analyser rejects any #:property line as malformed C# (same cause as ADR-0091).

Tested: reproduced NU1903 on all four scripts with the pinned SDK 10.0.100, then dotnet build --no-incremental of each is clean after the change. Not run, since they hit a registry, a URL or rewrite the ADR README.

Fixes a break on main: the "Enforce the coverage ratchet" step fails with NU1903 because file-based apps default to PublishAot=true, so SDK 10.0.100 implicitly restores Microsoft.DotNet.ILCompiler 10.0.0 (GHSA-p3jp-9v83-76w9). The scripts are only run, never published, so all four now set `#:property PublishAot=false`. The IDE0055 suppression in .editorconfig, previously scoped to the Playwright probe, now covers `scripts/*.cs`, because the analyser rejects any `#:property` line as malformed C# (same cause as ADR-0091). Tested: reproduced NU1903 on all four scripts with the pinned SDK 10.0.100, then `dotnet build --no-incremental` of each is clean after the change. Not run, since they hit a registry, a URL or rewrite the ADR README.
Stop file-based scripts restoring the ILCompiler package
All checks were successful
CI / build (pull_request) Successful in 4m14s
CI / e2e (pull_request) Successful in 7m34s
CI / container-images (pull_request) Successful in 8m19s
72f71b7d5e
File-based apps default to PublishAot=true, so SDK 10.0.100 adds ILCompiler 10.0.0 on restore, which now trips NU1903. The scripts are only ever run, never published.
Claude left a comment

Verdict: mergeable

Nothing to act on. All four scripts get the property, NU1903 and audit settings are untouched, and the IDE0055 scope matches the scripts directory.

Verdict: mergeable Nothing to act on. All four scripts get the property, NU1903 and audit settings are untouched, and the IDE0055 scope matches the scripts directory.
rob merged commit 44e9295687 into main 2026-11-20 22:08:37 +00:00
rob deleted branch fix-script-ilcompiler-advisory 2026-11-20 22:08:37 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
rob/PlaceMark!216
No description provided.