[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M699KGQJ4QXZBMBZKVTE2T78":3,"skill-same:01M699KGQJ4QXZBMBZKVTE2T78":80},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":52,"linkOnly":53,"markdownContent":54,"markdownBody":55,"frontMatter":56,"refName":57,"commitSha":58,"skillDirectory":59,"forksCount":60,"repositoryHtmlUrl":61,"repositoryHomepageUrl":17,"ownerHtmlUrl":62,"ownerBlogUrl":63,"ownerDescription":64,"updatedAt":65,"install":66,"resources":79},"01M699KGQJ4QXZBMBZKVTE2T78","winapp-troubleshoot","Windows 应用打包故障排查","Diagnose Windows app packaging, signing, install, identity, and SDK errors: untrusted or mismatched certificates, Add-AppxPackage and 0x80073CFx install failures, no package identity, C++\u002FWinRT headers not generated. Use when an MSIX won't install or build, or an error code appears.","诊断 Windows 应用的打包、签名、安装、标识和 SDK 错误：不受信任或不匹配的证书、Add-AppxPackage 和 0x80073CFx 安装失败、无包标识、C++\u002FWinRT 头文件未生成。适用于 MSIX 无法安装或构建，或出现错误代码的情况。","microsoft\u002FwinappCli","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M699J7Q2FM9V32CFV0Q8VPF9",1381,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FwinappCli\u002Fblob\u002Fmain\u002Fplugins\u002Fwinapp\u002Fskills\u002Fwinapp-troubleshoot\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRSRYQ3M8N5063NNQPF2B1","调试与故障排查","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],"troubleshoot","winapp troubleshoot","when","install","headers","build","certificates","signing","code","use","package","generated","errors","packaging","diagnose","c++","app","error","mismatched","sdk","windows","2026-11-10 10:12:30",false,"---\nname: winapp-troubleshoot\ndescription: \"Diagnose Windows app packaging, signing, install, identity, and SDK errors: untrusted or mismatched certificates, Add-AppxPackage and 0x80073CFx install failures, no package identity, C++\u002FWinRT headers not generated. Use when an MSIX won't install or build, or an error code appears.\"\n---\n\n**If you can't run `winapp` yourself** (no shell, or the command is denied), give the user the exact `winapp` command(s) for their project instead of only describing the steps.\n\n## When to use\n\nUse this skill when:\n- **Diagnosing errors** from winapp CLI commands\n- **Choosing the right command** for a task\n- **Understanding prerequisites** — what each command needs and what it produces\n\n## Common errors & solutions\n\nFor slow WinUI layout or scrolling, use the `winapp-performance` skill.\nETW performance capture is separate from debugger output and crash analysis.\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| \"winapp.yaml not found\" | Running `restore` or `update` without config | Run `winapp init` first, or `cd` to the directory containing `winapp.yaml` |\n| \"Package.appxmanifest not found\" | Running `package`, `create-debug-identity`, or `cert generate --manifest` | Run `winapp init` or `winapp manifest generate` first, or pass `--manifest \u003Cpath>` |\n| \"Publisher mismatch\" | Certificate publisher ≠ manifest publisher | Regenerate cert: `winapp cert generate --manifest`, or edit `Package.appxmanifest` `Identity.Publisher` to match |\n| \"Access denied\" \u002F \"elevation required\" | `cert install` without admin | Run terminal as Administrator for `winapp cert install` |\n| \"Package installation failed\" | Cert not trusted, or stale package registration | For a certificate error, `winapp cert install .\u002Fdevcert.pfx` (admin). For registration conflicts, see the rows below rather than deleting packages by name |\n| \"Certificate not trusted\" | Dev cert not installed on machine | `winapp cert install .\u002Fdevcert.pfx` (admin) |\n| \"Build tools not found\" | First run, tools not yet downloaded | Run `winapp update` to download tools; ensure internet access |\n| \"Failed to add package identity\" | Stale debug identity or untrusted cert | Run `winapp unregister` with your app's input (or `--manifest` for `create-debug-identity`); install a certificate only if the error asks for it |\n| \"Certificate file already exists\" | `devcert.pfx` already present | Use `winapp cert generate --if-exists overwrite` or `--if-exists skip` |\n| \"Manifest already exists\" | `Package.appxmanifest` already present | Use `winapp manifest generate --if-exists overwrite` or edit manifest directly |\n| `run` \u002F `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 |\n| Two worktrees of the same app keep replacing each other's registration | Both copies share one package identity | Run each with `winapp run . --unique-identity` (supported packaged apps) so each gets its own identity and app data |\n| `run` \u002F `create-debug-identity` registration error `0x80073CFB` | Package already registered with a conflicting identity | Run `winapp unregister` with your app's input, then retry. Use `--force` only if you are sure the same-named package registered elsewhere is yours |\n| 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 |\n| `run` reports access denied or a file in use during a rebuild | Permissions or a file held open; access denied alone does not identify a lock owner | Check the reported paths and permissions. `winapp run` closes a copy of the app running from the same layout before replacing its files; close any other process holding the file and retry. |\n| \"winapp can't write the API index\" \u002F \"can't install the Microsoft Store Developer CLI\" | `%USERPROFILE%\\.winapp` isn't writable (for example, an agent sandbox) | Set `WINAPP_CLI_CACHE_DIRECTORY` to a writable folder, such as one inside the project, and retry. Other commands keep working without it |\n\nFor `--unique-identity` errors about unsupported extensions or resources, see\n[unique identity for parallel checkouts](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FWinAppCli\u002Fblob\u002Fmain\u002Fdocs\u002Fusage.md#unique-identity-for-parallel-checkouts).\nRun without the flag instead of working around the check.\n\n## Command selection guide\n\n```\nIs the app a single .cs file (.NET file-based app)?\n├─ Yes → winapp run \u003Cfile>.cs  (builds it and generates the manifest for you)\n└─ No → Does the project have a Package.appxmanifest?\n   ├─ No → Do you want full setup (manifest + config + optional SDKs)?\n   │       ├─ Yes → winapp init (adds Windows platform files to existing project)\n   │       └─ No, just a manifest → winapp manifest generate\n   └─ Yes\n      ├─ Has winapp.yaml, cloned\u002Fpulled but .winapp\u002F folder missing?\n      │  └─ winapp restore\n      ├─ Want newer SDK versions?\n      │  └─ winapp update\n      ├─ Need a dev certificate?\n      │  └─ winapp cert generate (then winapp cert install for trust)\n      ├─ Need package identity for debugging? (see [Debugging Guide](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FWinAppCli\u002Fblob\u002Fmain\u002Fdocs\u002Fdebugging.md))\n      │  ├─ Exe is in your build output folder? (most frameworks)\n      │  │  └─ winapp run \u003Cbuild-output-dir>\n      │  └─ Exe is separate from app code? (Electron, sparse testing)\n      │     └─ winapp create-debug-identity \u003Cexe>\n      ├─ Ready to create MSIX installer?\n      │  └─ winapp package \u003Cbuild-output> --cert .\u002Fdevcert.pfx\n      ├─ Need to sign an existing file?\n      │  └─ winapp sign \u003Cfile> \u003Ccert>\n      ├─ Need to update app icons?\n      │  └─ winapp manifest update-assets .\u002Flogo.png\n      ├─ Need to run SDK tools directly?\n      │  └─ winapp tool \u003Ctoolname> \u003Cargs>\n      ├─ Need to publish to Microsoft Store?\n      │  └─ winapp store \u003Cargs> (passthrough to Store Developer CLI)\n      └─ Need the .winapp directory path for build scripts?\n         └─ winapp get-winapp-path (or --global for shared cache)\n```\n\n**Important notes:**\n- `winapp init` adds files to an **existing** project — it does not create a new project\n- The key prerequisite for most commands is `Package.appxmanifest`, not `winapp.yaml`\n- `winapp.yaml` is only needed for SDK version management (`restore`\u002F`update`)\n- Projects with NuGet package references (e.g., `.csproj` referencing `Microsoft.Windows.SDK.BuildTools`) can use winapp commands without `winapp.yaml`\n- For Electron projects, use the npm package (`npm install --save-dev @microsoft\u002Fwinappcli`) which includes Node.js-specific commands under `npx winapp node`\n\n## Debugging approach quick reference\n\n| Goal | Command | Key detail |\n|------|---------|------------|\n| Run with identity (most common) | `winapp run .\\build\\Debug` | Registers loose layout + launches; a console app gets an execution alias automatically |\n| Attach debugger to running app | `winapp run .\\build\\Debug` → attach to PID | Misses startup code |\n| Register identity, launch manually | `winapp run .\\build\\Debug --no-launch` | Launch via `start shell:AppsFolder\\\u003CAUMID>` or execution alias — **not** the exe directly |\n| 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\u002Fstartup code |\n| 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\u002FWinDbg |\n| Run and auto-clean | `winapp run .\\build\\Debug --unregister-on-exit` | Unregisters the dev package after the app exits |\n| Launch and detach (CI) | `winapp run .\\build\\Debug --detach` | Returns immediately after launch; use `--json` to get PID for scripting |\n| Clean up this app's registration | `winapp unregister .` | Pass the same input as `run`; works with or without `--unique-identity` |\n| 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 |\n\n> **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.\n\nFor full details, see the [Debugging Guide](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FWinAppCli\u002Fblob\u002Fmain\u002Fdocs\u002Fdebugging.md).\n\n## Prerequisites & state matrix\n\n| Command | Requires | Creates\u002FModifies |\n|---------|----------|------------------|\n| `init` | Existing project (any framework) | `winapp.yaml`, `.winapp\u002F`, `Package.appxmanifest`, `Assets\u002F`, `.gitignore` update |\n| `restore` | `winapp.yaml` | `.winapp\u002Fpackages\u002F`, generated projections |\n| `update` | `winapp.yaml` | Updates versions in `winapp.yaml`, reinstalls packages |\n| `manifest generate` | Nothing | `Package.appxmanifest`, `Assets\u002F` |\n| `manifest update-assets` | `Package.appxmanifest` + source image | Regenerates `Assets\u002F` icons |\n| `cert generate` | Nothing (or `Package.appxmanifest` for publisher) | `devcert.pfx` |\n| `cert install` | Certificate file + admin | Machine certificate store |\n| `create-debug-identity` | `Package.appxmanifest` + exe + trusted cert | Registers sparse package with Windows |\n| `run` | Build output folder + `Package.appxmanifest`; **or** a `.csproj`\u002F`.vcxproj`\u002F`.sln` (C++ needs Visual Studio or Build Tools with the C++ workload); **or** a `.cs` file-based app (no manifest needed — one is generated) | Registers loose layout package, launches app |\n| `unregister` | The same input passed to `run` (`.cs`, `.csproj`\u002F`.vcxproj`, or folder), or `--manifest` | Removes the development registration that `run` or `create-debug-identity` created |\n| `package` | Build output + `Package.appxmanifest` | `.msix` file |\n| `sign` | File + certificate | Signed file (in-place) |\n| `create-external-catalog` | Directory with executables | `CodeIntegrityExternal.cat` |\n| `tool \u003Cname>` | Nothing (auto-downloads tools) | Runs SDK tool directly |\n| `store` | Nothing (auto-downloads Store CLI) | Passthrough to Microsoft Store Developer CLI |\n| `get-winapp-path` | Nothing | Prints `.winapp` directory path |\n\n## Debugging tips\n\n- Add `--verbose` (or `-v`) to any command for detailed output\n- Add `--quiet` (or `-q`) to suppress progress messages (useful in CI\u002FCD)\n- Run `winapp --cli-schema` to get the full JSON schema of all commands and options\n- Run any command with `--help` for its specific usage information\n- Use `winapp get-winapp-path` to find where packages are stored locally\n- Use `winapp get-winapp-path --global` to find the shared cache location\n\n## Getting more help\n\n- Full CLI documentation: https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FWinAppCli\u002Fblob\u002Fmain\u002Fdocs\u002Fusage.md\n- Framework-specific guides: https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FWinAppCli\u002Ftree\u002Fmain\u002Fdocs\u002Fguides\n- File an issue: https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FWinAppCli\u002Fissues\n\n## Related skills\n- **Setup & init**: `winapp-setup` — adding Windows support to a project\n- **Manifest**: `winapp-manifest` — creating and editing `Package.appxmanifest`\n- **Signing**: `winapp-signing` — certificate generation and management\n- **Packaging**: `winapp-package` — creating MSIX installers\n- **Identity**: `winapp-identity` — enabling package identity for Windows APIs\n- **Frameworks**: `winapp-frameworks` — framework-specific guidance (Electron, .NET, C++, Rust, Flutter, Tauri)\n- **MAUI**: `winapp-maui` — packaging\u002Fsigning .NET MAUI Windows apps and resolving the resizetizer manifest\n\n## CLI reference\n\nRun `winapp \u003Ccommand> --help` for current command options, or `winapp --cli-schema` for the complete machine-readable command schema.\n","**If you can't run `winapp` yourself** (no shell, or the command is denied), give the user the exact `winapp` command(s) for their project instead of only describing the steps.\n\n## When to use\n\nUse this skill when:\n- **Diagnosing errors** from winapp CLI commands\n- **Choosing the right command** for a task\n- **Understanding prerequisites** — what each command needs and what it produces\n\n## Common errors & solutions\n\nFor slow WinUI layout or scrolling, use the `winapp-performance` skill.\nETW performance capture is separate from debugger output and crash analysis.\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| \"winapp.yaml not found\" | Running `restore` or `update` without config | Run `winapp init` first, or `cd` to the directory containing `winapp.yaml` |\n| \"Package.appxmanifest not found\" | Running `package`, `create-debug-identity`, or `cert generate --manifest` | Run `winapp init` or `winapp manifest generate` first, or pass `--manifest \u003Cpath>` |\n| \"Publisher mismatch\" | Certificate publisher ≠ manifest publisher | Regenerate cert: `winapp cert generate --manifest`, or edit `Package.appxmanifest` `Identity.Publisher` to match |\n| \"Access denied\" \u002F \"elevation required\" | `cert install` without admin | Run terminal as Administrator for `winapp cert install` |\n| \"Package installation failed\" | Cert not trusted, or stale package registration | For a certificate error, `winapp cert install .\u002Fdevcert.pfx` (admin). For registration conflicts, see the rows below rather than deleting packages by name |\n| \"Certificate not trusted\" | Dev cert not installed on machine | `winapp cert install .\u002Fdevcert.pfx` (admin) |\n| \"Build tools not found\" | First run, tools not yet downloaded | Run `winapp update` to download tools; ensure internet access |\n| \"Failed to add package identity\" | Stale debug identity or untrusted cert | Run `winapp unregister` with your app's input (or `--manifest` for `create-debug-identity`); install a certificate only if the error asks for it |\n| \"Certificate file already exists\" | `devcert.pfx` already present | Use `winapp cert generate --if-exists overwrite` or `--if-exists skip` |\n| \"Manifest already exists\" | `Package.appxmanifest` already present | Use `winapp manifest generate --if-exists overwrite` or edit manifest directly |\n| `run` \u002F `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 |\n| Two worktrees of the same app keep replacing each other's registration | Both copies share one package identity | Run each with `winapp run . --unique-identity` (supported packaged apps) so each gets its own identity and app data |\n| `run` \u002F `create-debug-identity` registration error `0x80073CFB` | Package already registered with a conflicting identity | Run `winapp unregister` with your app's input, then retry. Use `--force` only if you are sure the same-named package registered elsewhere is yours |\n| 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 |\n| `run` reports access denied or a file in use during a rebuild | Permissions or a file held open; access denied alone does not identify a lock owner | Check the reported paths and permissions. `winapp run` closes a copy of the app running from the same layout before replacing its files; close any other process holding the file and retry. |\n| \"winapp can't write the API index\" \u002F \"can't install the Microsoft Store Developer CLI\" | `%USERPROFILE%\\.winapp` isn't writable (for example, an agent sandbox) | Set `WINAPP_CLI_CACHE_DIRECTORY` to a writable folder, such as one inside the project, and retry. Other commands keep working without it |\n\nFor `--unique-identity` errors about unsupported extensions or resources, see\n[unique identity for parallel checkouts](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FWinAppCli\u002Fblob\u002Fmain\u002Fdocs\u002Fusage.md#unique-identity-for-parallel-checkouts).\nRun without the flag instead of working around the check.\n\n## Command selection guide\n\n```\nIs the app a single .cs file (.NET file-based app)?\n├─ Yes → winapp run \u003Cfile>.cs  (builds it and generates the manifest for you)\n└─ No → Does the project have a Package.appxmanifest?\n   ├─ No → Do you want full setup (manifest + config + optional SDKs)?\n   │       ├─ Yes → winapp init (adds Windows platform files to existing project)\n   │       └─ No, just a manifest → winapp manifest generate\n   └─ Yes\n      ├─ Has winapp.yaml, cloned\u002Fpulled but .winapp\u002F folder missing?\n      │  └─ winapp restore\n      ├─ Want newer SDK versions?\n      │  └─ winapp update\n      ├─ Need a dev certificate?\n      │  └─ winapp cert generate (then winapp cert install for trust)\n      ├─ Need package identity for debugging? (see [Debugging Guide](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FWinAppCli\u002Fblob\u002Fmain\u002Fdocs\u002Fdebugging.md))\n      │  ├─ Exe is in your build output folder? (most frameworks)\n      │  │  └─ winapp run \u003Cbuild-output-dir>\n      │  └─ Exe is separate from app code? (Electron, sparse testing)\n      │     └─ winapp create-debug-identity \u003Cexe>\n      ├─ Ready to create MSIX installer?\n      │  └─ winapp package \u003Cbuild-output> --cert .\u002Fdevcert.pfx\n      ├─ Need to sign an existing file?\n      │  └─ winapp sign \u003Cfile> \u003Ccert>\n      ├─ Need to update app icons?\n      │  └─ winapp manifest update-assets .\u002Flogo.png\n      ├─ Need to run SDK tools directly?\n      │  └─ winapp tool \u003Ctoolname> \u003Cargs>\n      ├─ Need to publish to Microsoft Store?\n      │  └─ winapp store \u003Cargs> (passthrough to Store Developer CLI)\n      └─ Need the .winapp directory path for build scripts?\n         └─ winapp get-winapp-path (or --global for shared cache)\n```\n\n**Important notes:**\n- `winapp init` adds files to an **existing** project — it does not create a new project\n- The key prerequisite for most commands is `Package.appxmanifest`, not `winapp.yaml`\n- `winapp.yaml` is only needed for SDK version management (`restore`\u002F`update`)\n- Projects with NuGet package references (e.g., `.csproj` referencing `Microsoft.Windows.SDK.BuildTools`) can use winapp commands without `winapp.yaml`\n- For Electron projects, use the npm package (`npm install --save-dev @microsoft\u002Fwinappcli`) which includes Node.js-specific commands under `npx winapp node`\n\n## Debugging approach quick reference\n\n| Goal | Command | Key detail |\n|------|---------|------------|\n| Run with identity (most common) | `winapp run .\\build\\Debug` | Registers loose layout + launches; a console app gets an execution alias automatically |\n| Attach debugger to running app | `winapp run .\\build\\Debug` → attach to PID | Misses startup code |\n| Register identity, launch manually | `winapp run .\\build\\Debug --no-launch` | Launch via `start shell:AppsFolder\\\u003CAUMID>` or execution alias — **not** the exe directly |\n| 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\u002Fstartup code |\n| 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\u002FWinDbg |\n| Run and auto-clean | `winapp run .\\build\\Debug --unregister-on-exit` | Unregisters the dev package after the app exits |\n| Launch and detach (CI) | `winapp run .\\build\\Debug --detach` | Returns immediately after launch; use `--json` to get PID for scripting |\n| Clean up this app's registration | `winapp unregister .` | Pass the same input as `run`; works with or without `--unique-identity` |\n| 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 |\n\n> **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.\n\nFor full details, see the [Debugging Guide](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FWinAppCli\u002Fblob\u002Fmain\u002Fdocs\u002Fdebugging.md).\n\n## Prerequisites & state matrix\n\n| Command | Requires | Creates\u002FModifies |\n|---------|----------|------------------|\n| `init` | Existing project (any framework) | `winapp.yaml`, `.winapp\u002F`, `Package.appxmanifest`, `Assets\u002F`, `.gitignore` update |\n| `restore` | `winapp.yaml` | `.winapp\u002Fpackages\u002F`, generated projections |\n| `update` | `winapp.yaml` | Updates versions in `winapp.yaml`, reinstalls packages |\n| `manifest generate` | Nothing | `Package.appxmanifest`, `Assets\u002F` |\n| `manifest update-assets` | `Package.appxmanifest` + source image | Regenerates `Assets\u002F` icons |\n| `cert generate` | Nothing (or `Package.appxmanifest` for publisher) | `devcert.pfx` |\n| `cert install` | Certificate file + admin | Machine certificate store |\n| `create-debug-identity` | `Package.appxmanifest` + exe + trusted cert | Registers sparse package with Windows |\n| `run` | Build output folder + `Package.appxmanifest`; **or** a `.csproj`\u002F`.vcxproj`\u002F`.sln` (C++ needs Visual Studio or Build Tools with the C++ workload); **or** a `.cs` file-based app (no manifest needed — one is generated) | Registers loose layout package, launches app |\n| `unregister` | The same input passed to `run` (`.cs`, `.csproj`\u002F`.vcxproj`, or folder), or `--manifest` | Removes the development registration that `run` or `create-debug-identity` created |\n| `package` | Build output + `Package.appxmanifest` | `.msix` file |\n| `sign` | File + certificate | Signed file (in-place) |\n| `create-external-catalog` | Directory with executables | `CodeIntegrityExternal.cat` |\n| `tool \u003Cname>` | Nothing (auto-downloads tools) | Runs SDK tool directly |\n| `store` | Nothing (auto-downloads Store CLI) | Passthrough to Microsoft Store Developer CLI |\n| `get-winapp-path` | Nothing | Prints `.winapp` directory path |\n\n## Debugging tips\n\n- Add `--verbose` (or `-v`) to any command for detailed output\n- Add `--quiet` (or `-q`) to suppress progress messages (useful in CI\u002FCD)\n- Run `winapp --cli-schema` to get the full JSON schema of all commands and options\n- Run any command with `--help` for its specific usage information\n- Use `winapp get-winapp-path` to find where packages are stored locally\n- Use `winapp get-winapp-path --global` to find the shared cache location\n\n## Getting more help\n\n- Full CLI documentation: https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FWinAppCli\u002Fblob\u002Fmain\u002Fdocs\u002Fusage.md\n- Framework-specific guides: https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FWinAppCli\u002Ftree\u002Fmain\u002Fdocs\u002Fguides\n- File an issue: https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FWinAppCli\u002Fissues\n\n## Related skills\n- **Setup & init**: `winapp-setup` — adding Windows support to a project\n- **Manifest**: `winapp-manifest` — creating and editing `Package.appxmanifest`\n- **Signing**: `winapp-signing` — certificate generation and management\n- **Packaging**: `winapp-package` — creating MSIX installers\n- **Identity**: `winapp-identity` — enabling package identity for Windows APIs\n- **Frameworks**: `winapp-frameworks` — framework-specific guidance (Electron, .NET, C++, Rust, Flutter, Tauri)\n- **MAUI**: `winapp-maui` — packaging\u002Fsigning .NET MAUI Windows apps and resolving the resizetizer manifest\n\n## CLI reference\n\nRun `winapp \u003Ccommand> --help` for current command options, or `winapp --cli-schema` for the complete machine-readable command schema.\n",{"name":5,"description":7},"main","886c8edcdc7ca26e1e2947a12d81a91d6a9334a5","plugins\u002Fwinapp\u002Fskills\u002Fwinapp-troubleshoot",96,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FwinappCli","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 07:14:37",{"source":9,"skillName":5,"commands":67,"prompt":77,"zipAvailable":78},[68,71,74],{"tool":69,"command":70},"npx","npx skills add microsoft\u002FwinappCli --skill winapp-troubleshoot",{"tool":72,"command":73},"bunx","bunx skills add microsoft\u002FwinappCli --skill winapp-troubleshoot",{"tool":75,"command":76},"pnpm","pnpm dlx skills add microsoft\u002FwinappCli --skill winapp-troubleshoot","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FwinappCli\u002Fblob\u002Fmain\u002Fplugins\u002Fwinapp\u002Fskills\u002Fwinapp-troubleshoot\u002FSKILL.md",true,[],[81,108,140,166,188,207],{"skillNo":82,"name":83,"nameZh":84,"description":85,"descriptionZh":86,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":87,"categories":88,"keywords":93,"publishedAt":52},"01M699M75MK9AADQV8PQQQ6NEV","winui-wpf-migration","WPF 至 WinUI 3 应用迁移","Migrate or port a WPF app to WinUI 3: namespaces (System.Windows to Microsoft.UI.Xaml), control mapping (DataGrid, WrapPanel, TabControl), Dispatcher to DispatcherQueue, imaging, MVVM with CommunityToolkit.Mvvm, ThemeResource. Use when converting WPF code or fixing migration build errors.","将 WPF 应用迁移或移植到 WinUI 3：命名空间（System.Windows 到 Microsoft.UI.Xaml）、控件映射（DataGrid、WrapPanel、TabControl）、Dispatcher 到 DispatcherQueue、图像处理、使用 CommunityToolkit.Mvvm 的 MVVM、ThemeResource。在转换 WPF 代码或修复迁移构建错误时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FwinappCli\u002Fblob\u002Fmain\u002Fplugins\u002Fwinui\u002Fagent-plugin\u002Fskills\u002Fwinui-wpf-migration\u002FSKILL.md",[89,90],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":91,"categoryName":92,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT7QVANT4709358VEJK53E","代码实现",[94,95,96,97,10,51,98,39,99,100,101,102,40,103,47,104,105,106,43,107,33],"winui wpf migration","winui","wpf","migration","dispatcher","xaml","ui","migrate","system","mvvm","mapping","port","imaging","namespaces",{"skillNo":109,"name":110,"nameZh":111,"description":112,"descriptionZh":113,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":114,"categories":115,"keywords":122,"publishedAt":52},"01M699M4W3GKSVVT9CRR1E3KSW","winui-ui-testing","Windows 桌面应用 UI 自动化测试","Write and run automated UI tests for Windows desktop apps (WinUI 3, WPF, WinForms, Win32) with the winapp ui harness: one batch script, assertions, input, file pickers, dialogs, screenshots, locally or in Windows Sandbox. Use when asked for UI tests or to verify a feature end to end.","使用 winapp ui harness 为 Windows 桌面应用（WinUI 3、WPF、WinForms、Win32）编写并运行自动化 UI 测试：一个批处理脚本，支持断言、输入、文件选择器、对话框、截图，可在本地或 Windows Sandbox 中运行。当用户要求 UI 测试或端到端验证某个功能时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FwinappCli\u002Fblob\u002Fmain\u002Fplugins\u002Fwinui\u002Fagent-plugin\u002Fskills\u002Fwinui-ui-testing\u002FSKILL.md",[116,119],{"categoryNo":117,"categoryName":118,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":120,"categoryName":121,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[123,124,95,100,125,126,127,51,128,129,130,131,132,133,134,135,136,137,138,139,33],"testing","winui ui testing","ui testing","screenshots","sandbox","run","win32","harness","batch","write","feature","end","apps","input","winforms","desktop apps","for",{"skillNo":141,"name":142,"nameZh":143,"description":144,"descriptionZh":145,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":146,"categories":147,"keywords":152,"publishedAt":52},"01M699M2KTEYJZBDW7JBHM94K0","winui-setup","WinUI 3 开发环境配置","Install and verify WinUI 3 prerequisites — .NET SDK 8.0.100+, WinApp CLI 0.7+, and Developer Mode; identify additional Native AOT and Windows Sandbox requirements. Use when the user asks to set up or repair the toolchain, or when another WinUI skill finds a missing or outdated prerequisite.","安装并验证 WinUI 3 的先决条件——.NET SDK 8.0.100+、WinApp CLI 0.7+ 以及开发者模式；识别 Native AOT 和 Windows Sandbox 的额外要求。当用户请求设置或修复工具链，或其他 WinUI 技能发现先决条件缺失或过时时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FwinappCli\u002Fblob\u002Fmain\u002Fplugins\u002Fwinui\u002Fagent-plugin\u002Fskills\u002Fwinui-setup\u002FSKILL.md",[148,149],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":150,"categoryName":151,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[153,154,95,155,127,50,51,156,157,34,40,158,159,160,161,162,163,164,165,33],"winui setup","setup","cli","SET","verify","up","repair","requirements","missing","native","toolchain","winapp cli","mode",{"skillNo":167,"name":168,"nameZh":169,"description":170,"descriptionZh":171,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":172,"categories":173,"keywords":178,"publishedAt":52},"01M699KZWEZ84A4J3291E6R65B","winui-packaging","WinUI 3 应用打包与发布","MSIX packaging, signing, and Microsoft Store publishing for WinUI 3 apps with WinApp CLI 0.7+: project packaging, Native AOT, certificates, self-contained deployment, CI\u002FCD. Use when releasing or publishing a WinUI app. Not for WPF, WinForms, or Electron apps that only reference the Windows App SDK.","使用 WinApp CLI 0.7+ 对 WinUI 3 应用进行 MSIX 打包、签名并发布到 Microsoft Store：包括项目打包、Native AOT、证书、自包含部署和 CI\u002FCD。在发布 WinUI 应用时使用。不适用于仅引用 Windows App SDK 的 WPF、WinForms 或 Electron 应用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FwinappCli\u002Fblob\u002Fmain\u002Fplugins\u002Fwinui\u002Fagent-plugin\u002Fskills\u002Fwinui-packaging\u002FSKILL.md",[174,175],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":176,"categoryName":177,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQNXPY1AV6BSR5VKHDMWRH","部署与发布管理",[179,95,44,155,50,180,10,181,51,182,183,37,184,185,186,47,135,137,162,187,164,139,33],"winui packaging","electron","msix","windows app sdk","ci","only","self","project","CI\u002FCD",{"skillNo":189,"name":190,"nameZh":191,"description":192,"descriptionZh":193,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":194,"categories":195,"keywords":198,"publishedAt":52},"01M699KXTHG9FHK4X3JSZ4SV8J","winui-dev-workflow","WinUI 应用开发工作流","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.","使用 WinApp CLI 0.7+ 创建、构建、运行 WinUI 3 应用（C# 或 C++）并修复构建错误：winapp new、winapp run、Native AOT、崩溃诊断。适用于新建 WinUI 应用，或构建失败、发生崩溃的 WinUI 项目。不适用于仅引用 Windows App SDK 的 WPF、WinForms 或 Electron 应用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FwinappCli\u002Fblob\u002Fmain\u002Fplugins\u002Fwinui\u002Fagent-plugin\u002Fskills\u002Fwinui-dev-workflow\u002FSKILL.md",[196,197],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":150,"categoryName":151,"taxonomyType":28,"taxonomyTypeDesc":29},[199,200,95,201,202,155,50,180,51,203,128,204,184,186,47,205,135,137,162,164,43,206],"workflow","winui dev workflow","dev","dev workflow","create","fix","diagnosis","new",{"skillNo":208,"name":209,"nameZh":210,"description":211,"descriptionZh":212,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":213,"categories":214,"keywords":219,"publishedAt":52},"01M699KV0Q6NE5EET5EDBH33NM","winui-design","WinUI XAML 界面设计","Read before writing or changing WinUI 3 XAML: choosing controls, pages and navigation, layout, Fluent Design, theming, accessibility, x:Bind, real samples, and checking that APIs exist with winapp find-api. Not for WPF or WinForms UI, even if the app uses the Windows App SDK.","在编写或更改 WinUI 3 XAML 之前阅读：控件、页面与导航的选择、布局、Fluent Design、主题、可访问性、x:Bind、真实示例，以及使用 winapp find-api 检查 API 是否存在。不适用于 WPF 或 WinForms UI，即使应用使用了 Windows App SDK。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FwinappCli\u002Fblob\u002Fmain\u002Fplugins\u002Fwinui\u002Fagent-plugin\u002Fskills\u002Fwinui-design\u002FSKILL.md",[215,216],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":217,"categoryName":218,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现",[220,221,95,222,50,223,224,51,182,96,99,100,225,226,227,228,229,47,137,230,139,231],"design","winui design","writing","accessibility","fluent","api","read","layout","pages","bind","controls","fluent design"]