Build with XuiView Markdown

Desktop apps

Run the same shared app sources in a native Windows or macOS window. The Desktop project chooses its backend from the build host; a successful Mac build does not validate the Windows backend.

For an app named MyApp, run from its generated folder:

dotnet run --project MyApp.Desktop.csproj
dotnet build MyApp.Desktop.csproj -c Release

These commands assume you already have the generated project and its dependencies. Use the starter's release caveat when installing a template version; repository examples may be ahead of published packages.

Choose desktop or emulator

Desktop opens a normal native window. Emulator wraps the native runtime with phone geometry and input translation. Use Desktop for mouse, keyboard, resize, and additional-window behavior; use Emulator to iterate on touch-oriented layout. Neither replaces a native mobile device test.

Keep native startup and platform selection in the generated host files. Shared pages should consume Core and ToolKit contracts instead of importing AppKit or Win32 directly.

Build a distributable deliberately

A successful dotnet build gives you compiled output, not an installer or a signed app bundle. Choose a runtime identifier, framework-dependent or self-contained deployment, asset layout, and platform packaging for your distribution channel. Signing and notarization on macOS and installer/signing choices on Windows remain distribution work; the starter does not complete them automatically.

Run the Release output outside the source directory to catch missing copied assets. Check startup, window close, keyboard navigation, font loading, and any extra windows. Test on each OS you claim to support.

Keep debugging tools out of the contract

The repository's Debug desktop composition adds DevTools. Do not depend on those services for app behavior: the Release variant does not expose the same debugging transport. If a failure appears only in Release, inspect conditional compilation and asset staging before assuming a rendering bug.

Continue with platform fallbacks when your app uses optional native capabilities.