winapp-troubleshoot
Skill1.3k starsChanged 2 months agoMITView on GitHub
Diagnose and fix common Windows app packaging, signing, identity, and SDK errors. Use when encountering errors with MSIX packaging, certificate signing, Windows SDK setup, or app installation.
- Installs packages
Trending
More talk lately.about the whole repository
Who's talking about microsoft/winappCli
- openclaw/openclaw-windows-node“Seed v3 Colophon design system for OpenClaw Windows Hub”GitHub · Sep 10, 2026 · 1 reactions
- sudosubin/agents.nix“copilot-plugins.github.microsoft.winappcli: init at 0.7.1”GitHub · Oct 4, 2026
- P4suta/Snaply“build(deps): update all non-major dependencies”GitHub · Oct 4, 2026
- P4suta/TateYoko“build(deps): update all non-major dependencies”GitHub · Oct 4, 2026
- P4suta/typing-sound“build(deps): update all non-major dependencies”GitHub · Oct 4, 2026
The biggest 5 of 36 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 36
Talked about on GitHub and Bluesky (36 times).
On GitHub · 35
- Sep 10, 2026Seed v3 Colophon design system for OpenClaw Windows Hub — openclaw/openclaw-windows-node1 reaction · 4 comments
- Oct 4, 2026copilot-plugins.github.microsoft.winappcli: init at 0.7.1 — sudosubin/agents.nix0 reactions
- Oct 4, 2026build(deps): update all non-major dependencies — P4suta/Snaply0 reactions · 2 comments
- Oct 4, 2026build(deps): update all non-major dependencies — P4suta/TateYoko0 reactions · 2 comments
- Oct 4, 2026build(deps): update all non-major dependencies — P4suta/typing-sound0 reactions · 1 comment
30 more on GitHub
- 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, 2026Bump the windows-app-sdk group with 2 updates — lzvsrx/LZ-AGENT0 reactions
- 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 · 1 comment
- Oct 2, 2026chore(deps): update dependency microsoft.windows.sdk.buildtools.winapp to 0.7.1 — SheepReaper/nes-emulator-30 reactions
- 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
- 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 28, 2026Bump the dotnet-dependencies group with 6 updates — rhamenator/SimpleLoanCalculator0 reactions · 2 comments
- Aug 21, 2026Bump the dotnet-dependencies group with 5 updates — rhamenator/SimpleLoanCalculator0 reactions · 2 comments
- Aug 19, 2026build(deps-dev): bump @microsoft/winappcli from 0.5.0 to 0.6.0 — baiyuscc13724-max/deepseek-harness-desktop0 reactions · 1 comment
- Aug 19, 2026fix(deps): update dependency microsoft.windows.sdk.buildtools.winapp to 0.6.1 — sebdanielsson/varys0 reactions
- Aug 18, 2026chore(deps): update dependency microsoft.windows.sdk.buildtools.winapp to 0.6.1 [automerge] — DevSecNinja/home-assistant-win-companion0 reactions
- Aug 14, 2026Bump Microsoft.Windows.SDK.BuildTools.WinApp from 0.3.1 to 0.6.0 — Has-X/Registry0 reactions · 1 comment
- Aug 14, 2026Bump the dotnet-dependencies group with 5 updates — rhamenator/SimpleLoanCalculator0 reactions · 2 comments
- Aug 9, 2026Add Windows WinApp computer provider — albert-zen/zen0 reactions
- Jul 2, 2026using winapp cii — peaceshi/Avalonia-NativeAOT-SingleFile0 reactions
- Feb 8, 2026Electron deployment: Add Windows packaging with Microsoft WinAppCli — ok-very/autoart0 reactions
On Bluesky · 1
- May 6, 2026Does winappcli help? github.com/microsoft/wi... — @drustheaxe.bsky.social0 likes and reposts · 1 reply
In this repository17 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-sandboxSkill
- winapp-setupSkill
- winapp-signingSkill
- winapp-ui-automationSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 1 is distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Use this skill when:
- Very specific: line 113
Add --verbose (or -v) to any command for detailed output
- Very specific: line 114
Add --quiet (or -q) to suppress progress messages (useful in CI/CD)
- Very specific: line 115
Run winapp --cli-schema to get the full JSON schema of all commands and options
- Very specific: line 116
Run any command with --help for its specific usage information
- Very specific: line 117
Use winapp get-winapp-path to find where packages are stored locally
- Very specific: line 118
Use winapp get-winapp-path --global to find the shared cache location
- Very specific: line 137
Run winapp <command> --help for current command options, or winapp --cli-schema for the complete machine-readable command schema.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
When to use
Use this skill when:
- Diagnosing errors from winapp CLI commands
- Choosing the right command for a task
- Understanding prerequisites — what each command needs and what it produces
Common errors & solutions
| Error | Cause | Solution |
| "winapp.yaml not found" | Running restore or update without config | Run winapp init first, or cd to the directory containing winapp.yaml |
| "Package.appxmanifest not found" | Running package, create-debug-identity, or cert generate --manifest | Run winapp init or winapp manifest generate first, or pass --manifest <path> |
| "Publisher mismatch" | Certificate publisher ≠ manifest publisher | Regenerate cert: winapp cert generate --manifest, or edit Package.appxmanifest Identity.Publisher to match |
| "Access denied" / "elevation required" | cert install without admin | Run terminal as Administrator for winapp cert install |
| "Package installation failed" | Cert not trusted, or stale package registration | winapp cert install ./devcert.pfx (admin), then Get-AppxPackage <name> | Remove-AppxPackage |
| "Certificate not trusted" | Dev cert not installed on machine | winapp cert install ./devcert.pfx (admin) |
| "Build tools not found" | First run, tools not yet downloaded | Run winapp update to download tools; ensure internet access |
| "Failed to add package identity" | Stale debug identity or untrusted cert | Get-AppxPackage *yourapp* | Remove-AppxPackage to clean up, then winapp cert install and retry |
| "Certificate file already exists" | devcert.pfx already present | Use winapp cert generate --if-exists overwrite or --if-exists skip |
| "Manifest already exists" | Package.appxmanifest already present | Use winapp manifest generate --if-exists overwrite or edit manifest directly |
run / create-debug-identity registration error 0x800704EC | Developer Mode is disabled | Enable it in Settings → Privacy & security → For developers, or Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock' -Name AllowDevelopmentWithoutDevLicense -Value 1, then retry |
run / create-debug-identity registration error 0x80073CFB | Package already registered with a conflicting identity | Run winapp unregister (or winapp unregister --force if the package was registered from a different project tree), then retry |
| App's Start menu entry launches nothing, silently | Package still registered after its files were deleted | Run winapp unregister --prune to remove every dev registration whose files are gone |
Command selection guide
Is the app a single .cs file (.NET file-based app)?
├─ Yes → winapp run <file>.cs (builds it and generates the manifest for you)
└─ No → Does the project have a Package.appxmanifest?
├─ No → Do you want full setup (manifest + config + optional SDKs)?
│ ├─ Yes → winapp init (adds Windows platform files to existing project)
│ └─ No, just a manifest → winapp manifest generate
└─ Yes
├─ Has winapp.yaml, cloned/pulled but .winapp/ folder missing?
│ └─ winapp restore
├─ Want newer SDK versions?
│ └─ winapp update
├─ Need a dev certificate?
│ └─ winapp cert generate (then winapp cert install for trust)
├─ Need package identity for debugging? (see [Debugging Guide](https://github.com/microsoft/WinAppCli/blob/main/docs/debugging.md))
│ ├─ Exe is in your build output folder? (most frameworks)
│ │ └─ winapp run <build-output-dir>
│ └─ Exe is separate from app code? (Electron, sparse testing)
│ └─ winapp create-debug-identity <exe>
├─ Ready to create MSIX installer?
│ └─ winapp package <build-output> --cert ./devcert.pfx
├─ Need to sign an existing file?
│ └─ winapp sign <file> <cert>
├─ Need to update app icons?
│ └─ winapp manifest update-assets ./logo.png
├─ Need to run SDK tools directly?
│ └─ winapp tool <toolname> <args>
├─ Need to publish to Microsoft Store?
│ └─ winapp store <args> (passthrough to Store Developer CLI)
└─ Need the .winapp directory path for build scripts?
└─ winapp get-winapp-path (or --global for shared cache)Important notes:
winapp initadds files to an existing project — it does not create a new project- The key prerequisite for most commands is
Package.appxmanifest, notwinapp.yaml winapp.yamlis only needed for SDK version management (restore/update)- Projects with NuGet package references (e.g.,
.csprojreferencingMicrosoft.Windows.SDK.BuildTools) can use winapp commands withoutwinapp.yaml - For Electron projects, use the npm package (
npm install --save-dev @microsoft/winappcli) which includes Node.js-specific commands undernpx winapp node
Debugging approach quick reference
| Goal | Command | Key detail |
| Run with identity (most common) | winapp run .\build\Debug | Registers loose layout + launches; a console app gets an execution alias automatically |
| Attach debugger to running app | winapp run .\build\Debug → attach to PID | Misses startup code |
| Register identity, launch manually | winapp run .\build\Debug --no-launch | Launch via start shell:AppsFolder\<AUMID> or execution alias — not the exe directly |
| F5 startup debugging (IDE launches exe) | winapp create-debug-identity .\bin\myapp.exe | Exe has identity regardless of how it's launched; best for debugging activation/startup code |
| Capture OutputDebugString + crash dump | winapp run .\build\Debug --debug-output | On crash, writes minidump and shows exception type, message, and faulting methods. Blocks other debuggers — use --no-launch if you need VS Code/WinDbg |
| Run and auto-clean | winapp run .\build\Debug --unregister-on-exit | Unregisters the dev package after the app exits |
| Launch and detach (CI) | winapp run .\build\Debug --detach | Returns immediately after launch; use --json to get PID for scripting |
| Clean up stale registration | winapp unregister | Removes dev-mode packages for the current project (pass a .cs for a file-based app: winapp unregister counter.cs) |
| Start menu entry does nothing when clicked | winapp unregister --prune | The package is registered but its files were deleted, so activation silently fails. Prune removes every dev registration whose files are gone |
Visual Studio users: If you have a packaging project, VS already handles identity and debugging from F5 — you likely don't need winapp for debugging. These workflows are for VS Code, terminal, and frameworks VS doesn't natively package.
For full details, see the Debugging Guide.
Prerequisites & state matrix
| Command | Requires | Creates/Modifies |
init | Existing project (any framework) | winapp.yaml, .winapp/, Package.appxmanifest, Assets/, .gitignore update |
restore | winapp.yaml | .winapp/packages/, generated projections |
update | winapp.yaml | Updates versions in winapp.yaml, reinstalls packages |
manifest generate | Nothing | Package.appxmanifest, Assets/ |
manifest update-assets | Package.appxmanifest + source image | Regenerates Assets/ icons |
cert generate | Nothing (or Package.appxmanifest for publisher) | devcert.pfx |
cert install | Certificate file + admin | Machine certificate store |
create-debug-identity | Package.appxmanifest + exe + trusted cert | Registers sparse package with Windows |
run | Build output folder + Package.appxmanifest; or a .csproj/.sln; or a .cs file-based app (no manifest needed — one is generated) | Registers loose layout package, launches app |
unregister | A .cs file-based app, or Package.appxmanifest (auto-detect or --manifest) | Removes dev-mode package registrations |
package | Build output + Package.appxmanifest | .msix file |
sign | File + certificate | Signed file (in-place) |
create-external-catalog | Directory with executables | CodeIntegrityExternal.cat |
tool <name> | Nothing (auto-downloads tools) | Runs SDK tool directly |
store | Nothing (auto-downloads Store CLI) | Passthrough to Microsoft Store Developer CLI |
get-winapp-path | Nothing | Prints .winapp directory path |
Debugging tips
- Add
--verbose(or-v) to any command for detailed output - Add
--quiet(or-q) to suppress progress messages (useful in CI/CD) - Run
winapp --cli-schemato get the full JSON schema of all commands and options - Run any command with
--helpfor its specific usage information - Use
winapp get-winapp-pathto find where packages are stored locally - Use
winapp get-winapp-path --globalto find the shared cache location
Getting more help
- Full CLI documentation: https://github.com/microsoft/WinAppCli/blob/main/docs/usage.md
- Framework-specific guides: https://github.com/microsoft/WinAppCli/tree/main/docs/guides
- File an issue: https://github.com/microsoft/WinAppCli/issues
Related skills
- Setup & init:
winapp-setup— adding Windows support to a project - Manifest:
winapp-manifest— creating and editingPackage.appxmanifest - Signing:
winapp-signing— certificate generation and management - Packaging:
winapp-package— creating MSIX installers - Identity:
winapp-identity— enabling package identity for Windows APIs - Frameworks:
winapp-frameworks— framework-specific guidance (Electron, .NET, C++, Rust, Flutter, Tauri) - MAUI:
winapp-maui— packaging/signing .NET MAUI Windows apps and resolving the resizetizer manifest
CLI reference
Run winapp <command> --help for current command options, or winapp --cli-schema for the complete machine-readable command schema.
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.

