/winappcli:winapp-packagefrom winappcli
Builds MSIX installers for Windows desktop, console, or CLI apps from build output or project files. Supports Electron, .NET, C++, Rust, Flutter, and Tauri targets with optional signing.
Ships in winappcli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
Use this skill when:
What you need depends on the input:
winapp package MyApp.csproj): an explicit .csproj for a packaged app (EnableMsixTooling=true with a Package.appxmanifest). winapp publishes it and packages the output.winapp package MyApp.vcxproj): winapp builds the project with Visual Studio's MSBuild and packages the build output. A packaged WinUI project uses the manifest its build generates; other projects need an appxmanifest.xml from winapp init or --manifest.winapp package ./bin/Release): built app output in a folder (e.g., bin/Release/, dist/, build/) plus a Package.appxmanifest in the current directory, passed via --manifest, or in the folder.devcert.pfx from winapp cert generate for signing.# Publish the project and create an MSIX in one step (no need to build or locate the output first)
winapp package ./MyApp.csproj
# Override configuration/architecture, or sign in the same step (project mode defaults to Release)
winapp package ./MyApp.csproj -c Debug --arch arm64 --cert ./devcert.pfx
# Package an already-built output without rebuilding
winapp package ./MyApp.csproj --no-build
# Produce an architecture .msixbundle from one project (publishes each arch, then bundles)
winapp package ./MyApp.csproj --arch x64 --arch arm64 --cert ./devcert.pfx
Project mode is triggered only by an explicit .csproj. It publishes the project — so trimmed or
self-contained apps package what actually ships — with the build options
(-c/--configuration, --arch, -f/--framework, --no-build, --no-restore,
repeatable -p), defaults to the Release configuration, resolves the published output, and
packages it. If the project publishes as an unpackaged app (WindowsPackageType=None) there is no
manifest to package and the command errors. Folder, bundle, and sparse-manifest inputs are unchanged.
# Build with Visual Studio's MSBuild (Release, current architecture) and create an MSIX
winapp package ./MyApp.vcxproj --cert ./devcert.pfx
# Pick the configuration and architecture the Visual Studio way
winapp package ./MyApp.vcxproj -p Configuration=Debug -p Platform=ARM64 --generate-cert
One architecture per run: --framework and multiple --arch values are rejected. For a bundle, build
each architecture and pass the output folders (see Multi-architecture bundles below).
# Package from build output — manifest auto-detected from current dir or input folder
winapp package ./bin/Release
# Specify manifest location explicitly
winapp package ./dist --manifest ./Package.appxmanifest
# Sign with existing certificate
winapp package ./bin/Release --cert ./devcert.pfx
# Custom certificate password
winapp package ./bin/Release --cert ./devcert.pfx --cert-password MyP@ssw0rd
# Auto-generate cert, sign, and package
winapp package ./bin/Release --generate-cert
# Also install the cert to trust it on this machine (requires admin)
winapp package ./bin/Release --generate-cert --install-cert
# Force an unsigned package. For a .csproj that configures its own signing, this overrides it.
# Cannot be combined with --cert or --generate-cert.
winapp package ./MyApp.csproj --no-sign
# Bundle Windows App SDK runtime so users don't need it installed (must have winappsdk reference in the winapp.yaml or *.csproj)
winapp package ./bin/Release --cert ./devcert.pfx --self-contained
# Specify output file
winapp package ./dist --output ./releases/myapp-v1.0.msix --cert ./devcert.pfx
# Custom package name
winapp package ./dist --name "MyApp_1.0.0_x64" --cert ./devcert.pfx
Package.appxmanifest — looks in input folder, then current directory (or uses --manifest)manifest.json, config files) is automatically copied from the manifest directory or input folder if missing from stagingresources.pri — Package Resource Index for UWP-style resource lookup (skip with --skip-pri)makeappx pack — creates the .msix package file--cert provided) — calls signtool with your certificateOutput: a .msix file that can be installed on Windows via double-click or Add-AppxPackage.
# Trust the dev certificate first (one-time, requires admin)
winapp cert install ./devcert.pfx
# Install the MSIX
Add-AppxPackage ./myapp.msix
# Uninstall if needed
Get-AppxPackage *myapp* | Remove-AppxPackage
dotnet build, cmake --build, npm run make, etc.)winapp package <build-output> --cert ./devcert.pfxwinapp cert install ./devcert.pfx (admin).msix or Add-AppxPackage ./myapp.msixFor sparse packages with AllowExternalContent, you may need a code integrity catalog:
# Generate CodeIntegrityExternal.cat for external executables
winapp create-external-catalog "./bin/Release"
# Include subdirectories and specify output path
winapp create-external-catalog "./bin/Release" --recursive --output ./catalog/CodeIntegrityExternal.cat
Create an MSIX bundle from multiple per-architecture build outputs:
# Create unsigned bundle for Store submission (x64 + arm64)
winapp package ./publish/x64 ./publish/arm64
# Create signed bundle for sideloading
winapp package ./publish/x64 ./publish/arm64 --cert ./devcert.pfx
# Self-contained bundle with Windows App SDK runtime per arch
winapp package ./publish/x64 ./publish/arm64 --self-contained --generate-cert
How it works: When multiple input folders are passed, winapp package:
.msix.msixbundle using makeappx bundleManifest resolution: Each slice needs a manifest. Resolution order:
--manifest <path> uses one manifest for all slices (architecture auto-stamped per folder)Package.appxmanifest if present in the input folderPackage.appxmanifest in the current working directoryThe ProcessorArchitecture is always force-set to the detected architecture per-slice. All other Identity fields must be consistent across slices.
Output: <Name>_<Version>_<arch1>_<arch2>.msixbundle (architectures sorted alphabetically).
Store submission: An unsigned bundle is valid for Store upload — Partner Center signs it with your reserved identity certificate. For sideloading, pass --cert or --generate-cert. To submit or manage the listing from the command line, use winapp store <args> (passthrough to the Microsoft Store Developer CLI, downloaded on first use).
This hashes executables in the specified directories so Windows trusts them when running with sparse package identity.
Use the microsoft/setup-winapp action to install winapp on GitHub-hosted runners:
- uses: microsoft/setup-winapp@v1
- name: Package
run: winapp package ./dist --cert ${{ secrets.CERT_PATH }} --cert-password ${{ secrets.CERT_PASSWORD }} --quiet
Tips for CI/CD pipelines:
--quiet (or -q) to suppress progress output--if-exists skip with winapp cert generate to avoid regenerating existing certificates--use-defaults (or --no-prompt) with winapp init to avoid interactive promptspackage command aliases to pack — both work identicallyPackage.appxmanifest Publisher must match the certificate publisher — use winapp cert generate --manifest to ensure they match--skip-pri if your app doesn't use Windows resource loading (e.g., most Electron/Rust/C++ apps without UWP resources)winapp-frameworks skill--executable flag overrides the entry point in the manifest — useful when your exe name differs from what's in Package.appxmanifest--timestamp when signing with winapp signTo grant identity to an app distributed by an existing installer (not as MSIX), build an identity-only sparse package: pass a sparse appxmanifest.xml (one declaring <uap10:AllowExternalContent>true</uap10:AllowExternalContent> under <Properties>) to winapp pack instead of a folder.
# 1. Generate the sparse manifest for your exe (skips SDK install)
winapp init --exe ./bin/Release/MyApp.exe --sparse --use-defaults
# 2. Build & sign the identity-only .msix (just the manifest)
winapp pack ./sparse/appxmanifest.xml --cert ./devcert.pfx
# 3. Embed identity into the exe, then register in your installer
winapp embed-identity ./bin/Release/MyApp.exe
The .msix contains only the manifest — binaries and assets are resolved from the external content location at runtime via Add-AppxPackage -ExternalLocation. If you pack a folder whose manifest declares AllowExternalContent, winapp pack warns about any assets/binaries found. See the Sparse Packaging Guide.
winapp-manifest to generate Package.appxmanifestwinapp-signing for certificate generation and managementwinapp-troubleshoot for a command selection flowchart and error solutions| Error | Cause | Solution |
|---|---|---|
| "Package.appxmanifest not found" | No manifest in input folder or current dir | Run winapp init or winapp manifest generate first |
| "Publisher mismatch" | Cert publisher ≠ manifest publisher | Regenerate cert with winapp cert generate --manifest, or edit manifest |
| "Package installation failed" | Cert not trusted or stale package | Run winapp cert install ./devcert.pfx (admin). If an earlier winapp run registration is in the way, remove it with winapp unregister <input> rather than deleting packages by name |
| "makeappx not found" | Build tools not downloaded | Run winapp update or winapp tool makeappx --help to trigger download |
Run winapp <command> --help for current command options, or winapp --cli-schema for the complete machine-readable command schema.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub microsoft/winappcli --plugin winappcli14 skills in this plugin
/winapp-find-apiLook up real Windows, WinRT, and Windows App SDK APIs (types, members, enums) from a project's references or the installed SDKs with winapp find-api instead of guessing. Use before coding against an unverified API, or to fix unknown-member, CS0117, CS1061, or WMC0011 errors. Not for registry code./winapp-find-uiFind the right WinUI 3 control and a real, compiling sample from the WinUI Gallery or Community Toolkit with winapp find-ui. Use when building WinUI UI and unsure which control fits (cards, tabs, swipe lists, inline messages) or when asked for a sample. Not for WPF, WinForms, or a running app./winapp-frameworksFramework-specific Windows steps for Electron, WPF, WinForms, C++, Rust, Flutter, and Tauri: build output, npm scripts, Cargo, CMake, and how winapp fits each. Use when adding Windows features such as toast notifications to one of these apps, or for setup, packaging, or identity work on one.Other plugins' skills for the same job