Skip to content

fix: app closed on startup; single-file portable exe - #3

Merged
nextestudios merged 6 commits into
mainfrom
fix/portable-startup
Sep 26, 2026
Merged

nextestudios merged 6 commits into
mainfrom
fix/portable-startup

Conversation

@nextestudios

@nextestudios nextestudios commented Sep 26, 2026 •

Copy link
Copy Markdown
Owner

Problem

0.1.0-alpha.1 and 0.1.0-alpha.2 closed right after opening (installed and portable): exit 0xC000027B in Microsoft.UI.Xaml.dll. The new startup log showed Cannot locate resource from 'ms-appx:///Microsoft.UI.Xaml/Themes/themeresources.xaml'.

Fix

  • EnableMsixTooling=true so the unpackaged app generates ControlFS.pri.
  • Portable is now a single ControlFS-Portable-x64.exe with data in ControlFS_Data next to it.
  • Local startup/crash log.
  • Smoke workflow + release gate: CI opens the portable exe and the installed app on Windows (process alive, window, event log, screenshot) before publishing.

Evidence

Smoke on windows-latest: portable and installed app open and keep the "ControlFS" window; install → launch → uninstall OK; screenshot shows the UI.

🤖 Generated with Claude Code

nextestudios and others added 6 commits September 26, 2026 19:09
Writes startup steps and unhandled exceptions to %LOCALAPPDATA%\ControlFS\logs
so startup failures can be diagnosed (no passwords or file contents).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ngle-file portable exe

The app crashed on startup (0xC000027B, "Cannot locate resource from
ms-appx:///Microsoft.UI.Xaml/Themes/themeresources.xaml") because an
unpackaged app needs EnableMsixTooling to produce ControlFS.pri.
The portable build is now a single ControlFS-Portable-x64.exe that keeps its
data in ControlFS_Data next to it. Release and smoke workflows now launch the
portable exe and the installed app before anything is published.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PublishSingleFile adds an implicit Microsoft.NET.ILLink.Tasks reference from
the SDK that the lock files don't list. The installer build (published first)
and CI keep the locked restore.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cess exit in startup test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nextestudios nextestudios changed the title fix: portable build crashes on startup fix: app closed on startup; single-file portable exe Sep 26, 2026
@nextestudios
nextestudios merged commit 8e0653d into main Sep 26, 2026
7 checks passed
@nextestudios
nextestudios deleted the fix/portable-startup branch September 26, 2026 22:31
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