winui-dev-workflow
Skill1.4k starsChanged 55 days agoMITView on GitHub
Create, build, run, and fix build errors in WinUI 3 apps (C# or C++) with WinApp CLI 0.7+: winapp new, winapp run, Native AOT, crash diagnosis. Use for a new WinUI app or a WinUI project that fails to build or crashes. Not for WPF, WinForms, or Electron apps that only reference the Windows App SDK.
1 other project uses a version of this, 1 of them edited.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- jorgeasaurus/agent-skillsedited, first seen May 11, 2026
Who's talking about microsoft/winappCli
- Stack Overflow“How to launch WinUI3 app from command line”Stack Overflow · May 3, 2026 · 1 votes
- sudosubin/agents.nix“codex-plugins.github.microsoft.winappcli: init at 0.8.0”GitHub · Nov 7, 2026
- sudosubin/agents.nix“agent-plugins.github.microsoft.winappcli: 0.7.1 → 0.8.0”GitHub · Nov 7, 2026
- sudosubin/agents.nix“claude-code-plugins.github.microsoft.winappcli: 0.7.1 → 0.8.0”GitHub · Nov 7, 2026
- sudosubin/agents.nix“copilot-plugins.github.microsoft.winappcli: 0.7.1 → 0.8.0”GitHub · Nov 7, 2026
The biggest 5 of 52 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 52
Talked about on GitHub, Bluesky and Stack Overflow (52 times).
On GitHub · 50
- Nov 7, 2026codex-plugins.github.microsoft.winappcli: init at 0.8.0 — sudosubin/agents.nix0 reactions
- Nov 7, 2026agent-plugins.github.microsoft.winappcli: 0.7.1 → 0.8.0 — sudosubin/agents.nix0 reactions
- Nov 7, 2026claude-code-plugins.github.microsoft.winappcli: 0.7.1 → 0.8.0 — sudosubin/agents.nix0 reactions
- Nov 7, 2026copilot-plugins.github.microsoft.winappcli: 0.7.1 → 0.8.0 — sudosubin/agents.nix0 reactions
- Nov 7, 2026claude-code-marketplaces.github.microsoft.winappcli: 0.7.1 → 0.8.0 — sudosubin/agents.nix0 reactions
45 more on GitHub
- Nov 7, 2026agent-skills.github.microsoft.winappcli: 0.7.1 → 0.8.0 — sudosubin/agents.nix0 reactions
- Nov 7, 2026Bump the windows-app-sdk group with 3 updates — lzvsrx/LZ-AGENT0 reactions
- Nov 7, 2026codex-marketplaces.github.microsoft.winappcli: 0.7.1 → 0.8.0 — sudosubin/agents.nix0 reactions
- Nov 6, 2026Bump the dotnet-dependencies group with 6 updates — rhamenator/SimpleLoanCalculator0 reactions · 1 comment
- Nov 3, 2026UIA fails in Windows Sandbox when ProcessId is 0 — asklar/lvt0 reactions
- Oct 31, 2026Bump the windows-app-sdk group with 3 updates — k25jura/Reeled0 reactions
- Oct 31, 2026Bump the windows-app-sdk group with 3 updates — lzvsrx/LZ-AGENT0 reactions · 1 comment
- Oct 30, 2026Bump the dotnet-dependencies group with 6 updates — rhamenator/SimpleLoanCalculator0 reactions · 2 comments
- Oct 29, 2026codex-marketplaces.github.microsoft.winappcli: init at 0.7.1 — sudosubin/agents.nix0 reactions
- Oct 28, 2026claude-code-plugins.github.microsoft.winappcli: init at 0.7.1 — sudosubin/agents.nix0 reactions
- Oct 28, 2026claude-code-marketplaces.github.microsoft.winappcli: init at 0.7.1 — sudosubin/agents.nix0 reactions
- Oct 21, 2026fix(public RDTE): pin WinApp archive hash offline to survive anonymous GitHub REST limits — SemperSupra/WinInspect0 reactions
- Oct 17, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp and Microsoft.WindowsAppSDK — k25jura/Reeled0 reactions · 1 comment
- Oct 16, 2026[Feature]: Track sparse packaging workflow support and review follow-ups — microsoft/WinAppVSCE0 reactions
- Oct 16, 2026Bump coverlet.collector and 5 others — rhamenator/SimpleLoanCalculator0 reactions · 2 comments
- Oct 16, 2026chore(deps): update dependency microsoft.windows.sdk.buildtools.winapp to 0.7.1 [automerge] — DevSecNinja/home-assistant-win-companion0 reactions · 1 comment
- Oct 14, 2026agent-skills.github.microsoft.winappcli: init at 0.7.1 — sudosubin/agents.nix0 reactions
- Oct 8, 2026[Candidate] microsoft/winappcli/.github/skills/pr-lifecycle - pr-lifecycle — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 8, 2026[Candidate] microsoft/winappcli/.github/skills/code-quality - code-quality — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 8, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.3.2 to 0.7.1 — trsdn/md2loop-windows0 reactions
- Oct 7, 2026Add WinDbg diagnosis plugin — microsoft/win-dev-skills0 reactions · 2 comments
- Oct 7, 2026docs: broaden scope to Windows development and debugging — microsoft/win-dev-skills0 reactions · 1 comment
- Oct 4, 2026copilot-plugins.github.microsoft.winappcli: init at 0.7.1 — sudosubin/agents.nix0 reactions
- Oct 4, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.7.0 to 0.7.1 — mirrorpulse/MirrorPulse0 reactions
- Oct 4, 2026agent-plugins.github.microsoft.winappcli: init at 0.7.1 — sudosubin/agents.nix0 reactions
- Oct 3, 2026[Workstream F] PR 5 of 5: An in-session UI Automation helper drives the interactive desktop by element, not coordinates — zaxbysauce/zaxby-hyperv-mcp0 reactions · 8 comments
- Oct 3, 2026Bump the windows-app-sdk group with 2 updates — lzvsrx/LZ-AGENT0 reactions · 2 comments
- Oct 3, 2026chore(deps-node): update dependency @microsoft/winappcli to v0.7.1 — scottlz0310/md-peruse0 reactions
- Oct 2, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.6.1 to 0.7.1 — Has-X/Registry0 reactions
- Oct 2, 2026Bump the dotnet-dependencies group with 6 updates — rhamenator/SimpleLoanCalculator0 reactions · 2 comments
- Oct 2, 2026Update dependency Microsoft.Windows.SDK.BuildTools.WinApp to 0.7.1 - autoclosed — mfakane/azunyan0 reactions
- Oct 2, 2026fix(deps): update dependency microsoft.windows.sdk.buildtools.winapp to 0.7.1 — sebdanielsson/varys0 reactions
- Sep 26, 2026Bump the windows-app-sdk group with 2 updates — lzvsrx/LZ-AGENT0 reactions · 1 comment
- Sep 25, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.6.1 to 0.7.0 — Has-X/Registry0 reactions · 1 comment
- Sep 25, 2026Bump the dotnet-dependencies group with 6 updates — rhamenator/SimpleLoanCalculator0 reactions · 2 comments
- Sep 24, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.3.2 to 0.7.0 — trsdn/md2loop-windows0 reactions · 1 comment
- Sep 18, 2026Bump the dotnet-dependencies group with 6 updates — rhamenator/SimpleLoanCalculator0 reactions · 2 comments
- Sep 12, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.5.0 to 0.6.1 — jacob-krarup-madsen/WinForge0 reactions · 1 comment
- Sep 11, 2026Bump the dotnet-dependencies group with 6 updates — rhamenator/SimpleLoanCalculator0 reactions · 2 comments
- Sep 4, 2026UI 驱动三选一:winapp ui、FlaUI、UIAutomationClient — trytoreachpeak0/8005-test-lab0 reactions · 2 comments
- Sep 3, 2026refactor: migrate MSIX packaging/signing to Microsoft's winapp CLI — recregt/winsp0 reactions
- Sep 3, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.3.2 to 0.6.1 — trsdn/md2loop-windows0 reactions · 1 comment
- Sep 1, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.6.0 to 0.6.1 — onlytrisdev/chrome-native-adblock0 reactions
- Aug 14, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.3.1 to 0.6.0 — Has-X/Registry0 reactions · 1 comment
- Jul 2, 2026using winapp cii — peaceshi/Avalonia-NativeAOT-SingleFile0 reactions
On Bluesky · 1
- May 6, 2026Does winappcli help? github.com/microsoft/wi... — @drustheaxe.bsky.social0 likes and reposts · 1 reply
On Stack Overflow · 1
- May 3, 2026How to launch WinUI3 app from command line1 vote
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- jorgeasaurus/agent-skills★ 1416% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- code-qualitySkill
- pr-lifecycleSkill
- pr-reviewSkill
- spec-reviewSkill
- winapp-find-apiSkill
- winapp-find-uiSkill
- winapp-frameworksSkill
- winapp-identitySkill
- winapp-manifestSkill
- winapp-mauiSkill
- winapp-packageSkill
- winapp-performanceSkill
- winapp-sandboxSkill
- winapp-setupSkill
- winapp-signingSkill
- winapp-troubleshootSkill
- winapp-ui-automationSkill
- winui-devtoolsSkill
- winui-code-reviewSkill
- winui-designSkill
- winui-packagingSkill
- winui-setupSkill
- winui-ui-testingSkill
- winui-wpf-migrationSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Run winapp new --list to discover the currently installed template short names.
- Distinctive: line 26
Add the latest stable analyzer to each app project.
- Distinctive: line 44
If build fails: Read all errors, batch-fix them in one pass, then rerun the same command.
- Very specific: line 91
Keep packaged as the default and use project-mode winapp run for activation.
- Very specific: line 92
Only for an explicitly requested unpackaged/debug experiment, set WindowsPackageType=None.
- Very specific: line 93
Do not delete Package.appxmanifest.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Scope: WinUI 3 apps only. The Windows App SDK is not WinUI. A WPF, WinForms, Electron, or other app that references the Windows App SDK (for notifications, packaging, or other APIs) is not a WinUI app; keep its framework and don't apply this skill unless the task is to port it to WinUI 3. A WinUI 3 project has <UseWinUI>true</UseWinUI> or uses Microsoft.UI.Xaml.
Requires WinApp CLI 0.7+.
Create or Open a Project
New app — let WinApp CLI install/update the official templates and scaffold:
winapp new --name <AppName> --template winui-mvvm --template-version latest --use-defaults
cd <AppName>Run winapp new --list to discover the currently installed template short names. Do not install the template pack separately and do not create the output directory first.
Existing app — read the .csproj to understand:
<TargetFramework>(e.g.,net10.0-windows10.0.26100.0)<PackageReference>versions (WindowsAppSDK, CommunityToolkit)- Project structure and established patterns
Add or Check the Per-App Analyzer
Add the latest stable analyzer to each app project; do not assume a template includes it:
dotnet add .\MyApp.csproj package Microsoft.Windows.SDK.BuildTools.WinUIAnalyzerKeep PrivateAssets="all" on the reference. It loads in normal CLI, IDE, and CI builds; WinApp CLI does not inject it. If the package is unavailable, continue and tell the user its checks for potential runtime issues did not run. Undo only an incomplete reference added by this attempt; do not remove existing references or hide other restore failures.
For other packages, prefer the latest stable unless the project has a version policy or the user requests a specific version. Before coding API assumptions, use winapp find-api scoped to the restored app with --project-dir <app-project-dir> (or --project <name> in a solution); see winui-design.
Build & Run (JIT Development)
winapp run . --detach --jsonFor UI testing, see winui-ui-testing, which chooses the execution target itself.
Ordinary winapp run uses the build/JIT path, even with -c Release; it does not validate Native AOT. Use an explicit .csproj when project selection is ambiguous; see winapp run --help for options.
If build fails: Read all errors, batch-fix them in one pass, then rerun the same command.
Native AOT Publish Runs
For intended AOT deployment, set <PublishAot>true</PublishAot> in the app project (it also enables analysis during development); for a one-off trial, pass -p PublishAot=true. --aot publishes rather than builds; choose an --arch runnable on this machine:
winapp run . --aot -c Release --arch <x64|arm64> --detach --json
winapp run . --aot -c Release --arch <x64|arm64> -p PublishAot=true --detach --jsonFix IL/CsWinRT warnings rather than suppressing them. See winui-packaging's references/sourcegen-patterns.md.
Diagnosing Crashes
Run attached with --debug-output and invoke it with mode: "async", then read the same shell. On a WinUI crash, stowed-exception triage surfaces the real XAML error behind an opaque 0x8000FFFF / E_FAIL; add --symbols for richer native frames. The first crash downloads debugger components; set WINAPP_DBGTOOLS_DIR to an existing Debugging Tools for Windows install when offline. --debug-output cannot combine with --json or --no-launch.
Common Errors
| Error | Fix |
| Developer Mode not enabled | Settings → System → For developers → On |
| CS0234/CS0246 missing type | Add using or dotnet add package |
| NETSDK1136 platform required | Target a Windows TFM (for example net10.0-windows10.0.26100.0); use -f <windows-tfm> when the project already multi-targets |
| XLS0414 XAML type not found | Add xmlns declaration |
| XDG0062 binding path missing | Check x:Bind property exists on ViewModel |
| Dynamic bound value does not update | Check effective mode, including inherited x:DefaultBindMode; use OneWay/TwoWay and change notifications where needed |
| App silently exits | Use project-mode winapp run; don't bypass packaged activation by running the .exe directly |
App crashes with opaque 0x8000FFFF / E_FAIL | See Diagnosing Crashes |
| XAML compiler crashes silently | Remove any PresentationCore.dll / System.Windows references |
MSB3073 / XamlCompiler.exe ... exited with code 1, no .xaml named | Old WindowsAppSDK XAML-compiler bug — update Microsoft.WindowsAppSDK NuGet to latest (≥ 2.1.3, or ≥ 1.8 on the 1.x line) |
| 0x80073CF6 package install failed | Check the manifest publisher and Developer Mode; apps from winapp new need no separate winapp init |
| 0x80073CF9 / "Failed to reach state Staged" on a deeply nested project | For a packaged app, rerun with --output-appx-directory "$env:LOCALAPPDATA\winapp-layout\<app>-<config>-<arch>", or move the repo closer to the drive root. Keep the directory unique per configuration and architecture — a registered development package holds a live reference to it, so Debug and Release must not share one — and empty it before reuse so payload files dropped since the last build do not linger |
| 0x8007000B bad image format | Wrong platform target — use x64 or ARM64, not AnyCPU |
Prerequisites
| Requirement | Required for this workflow |
| Windows | Windows 10 v1903+ and the app's OS requirements |
| Developer Mode | Enabled for development deployment |
| .NET SDK | 8.0.100 minimum plus the SDK required by the app's TFM (e.g., .NET 10 for net10.0-windows…) |
| WinApp CLI | 0.7+ |
| Native AOT only | MSVC C++ build tools (Visual Studio or Build Tools, Desktop development with C++ workload, target-architecture tools); not needed for normal builds |
If WinApp CLI is missing or older than 0.7, install or upgrade it using winui-setup without asking (it needs no admin rights) and tell the user. Ask before installing anything that needs admin rights — the .NET SDK, Developer Mode, or the Native AOT toolchain; do not work around them.
Critical Rules
- Keep packaged as the default and use project-mode
winapp runfor activation. - Only for an explicitly requested unpackaged/debug experiment, set
WindowsPackageType=None; package-identity-dependent APIs may fail and runtime requirements still apply. Do not use this as a silent launch workaround. Preserve the manifest and restore the original packaged setting after the experiment. - Do not delete
Package.appxmanifest. - ❌ NEVER use
AnyCPU— always x64 or ARM64
References
winui-packaging— release packaging directly from the project; no development registration required.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

