Skip to content

Fix self-contained build: ship as zip (fixes ARM64 crash)#16

Merged
marco-beltrame merged 1 commit into
mainfrom
fix-standalone-zip
May 29, 2026
Merged

Fix self-contained build: ship as zip (fixes ARM64 crash)#16
marco-beltrame merged 1 commit into
mainfrom
fix-standalone-zip

Conversation

@marco-beltrame

Copy link
Copy Markdown
Owner

Fixes #15.

WPF native DLLs can't be embedded in a single-file bundle, so the bare standalone exe crashed with DllNotFoundException (ARM64 reported by @talynone; x64 affected too once downloaded without the DLLs).

Self-contained now publishes as a folder and ships as a zip (exe + native DLLs together). Framework-dependent single-file is unchanged.

WPF's native DLLs (PresentationNative, wpfgfx, D3DCompiler, PenImc,
vcruntime140) cannot be embedded in a PublishSingleFile bundle; they are
emitted beside the exe. The workflow previously uploaded only the bare
standalone exe, so it crashed on launch with DllNotFoundException — badly
on ARM64 (reported in #15), and on x64 too once downloaded without the DLLs.

Publish the self-contained build as a normal folder and ship it as a zip
(exe + native DLLs together). Framework-dependent single-file is unaffected:
it gets the native libs from the installed .NET Desktop Runtime.

Closes #15.
@marco-beltrame marco-beltrame merged commit 67e5d87 into main May 29, 2026
2 checks passed
@marco-beltrame marco-beltrame deleted the fix-standalone-zip branch May 29, 2026 19:48
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.

[Bug]: WinUI not compatible with Windows ARM Single Exe Output

1 participant