Skip to content

fix(app): single-file publish no longer stops on IL3000 - #56

Merged
FedeB2160 merged 1 commit into
mainfrom
claude/v2-fix-il3000-2db3db
Nov 10, 2026
Merged

FedeB2160 merged 1 commit into
mainfrom
claude/v2-fix-il3000-2db3db

Conversation

@FedeB2160

Copy link
Copy Markdown
Owner

Point 1 of the phase 1 parity fixes.

dotnet publish -p:PublishSingleFile=true failed with UpdateHost.cs(12,59): error IL3000 (TreatWarningsAsErrors). An empty Assembly.Location is how UpdateHost.ExePath detects the published exe, so IL3000 is suppressed on that property only, with the reason.

  • UpdateHost.cs: [UnconditionalSuppressMessage("SingleFile", "IL3000", ...)] on ExePath.
  • CI, dotnet job: framework-dependent single-file publish, so the regression cannot return unnoticed.
  • ADR 0026: note of 2026-11-10.

Verified

  • Both ADR 0026 publishes succeed without -p:WarningsNotAsErrors (--no-self-contained; --self-contained -p:EnableCompressionInSingleFile=true, also with IncludeNativeLibrariesForSelfExtract); no other IL3000/IL3002.
  • Published exes start; Settings > App updates > Check for new versions queries GitHub (Portable channel, not Source).
  • Windows Sandbox (no .NET): self-contained portable starts, Portable channel; framework-dependent exe shows the standard "install .NET" prompt.
  • dotnet test --solution app\WinGetStudio.sln green, except the intermittent AppStateTests.LinesFromAnotherThreadArePostedToTheUi (pre-existing, unrelated: the test and its Task.Run can land on the same pool thread).

UpdateHost.ExePath reads Assembly.Location on purpose: empty means the
published single-file exe. Suppress IL3000 on that property only, publish
single-file in the dotnet CI job, and note it in ADR 0026.
@FedeB2160
FedeB2160 merged commit c18aca7 into main Nov 10, 2026
3 checks passed
@FedeB2160
FedeB2160 deleted the claude/v2-fix-il3000-2db3db branch November 10, 2026 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant