microsoft/winappcli/winapp-package
Claude Code and agent skill by microsoft/winappcli
- vendor
Checking that the SKILL.md file is still in the repository.
Build an MSIX installer for a desktop, console, or CLI app (Electron, .NET, C++, Rust, Flutter, Tauri) from build output or a project file with winapp package, optionally signed. Use for an installer testers can sideload, app distribution, or MSIX in scripts or CI. Not for signing an existing MSIX.
Install
npx vskill@latest install microsoft/winappcli/winapp-packageSKILL.md
The same SKILL.md was published earlier as microsoft/winappcli/winapp-package.
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.
When to use
Use this skill when:
- Creating an MSIX installer from a built app for distribution or testing
- Packaging any Windows app — GUI apps, console apps, CLI tools, services, or background processes
- Signing a package with a development or production certificate
- Bundling the Windows App SDK runtime for self-contained deployment
Prerequisites
What you need depends on the input:
- Project mode (
winapp package MyApp.csproj): an explicit.csprojfor a packaged app (EnableMsixTooling=truewith aPackage.appxmanifest). winapp publishes it and packages the output. - C++ project mode (
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 anappxmanifest.xmlfromwinapp initor--manifest. - Folder mode (
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. - Certificate (optional, both modes) —
devcert.pfxfromwinapp cert generatefor signing.
Usage
Package directly from a .csproj (project mode)
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.
Package a C++ project (.vcxproj)
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).
Basic packaging (unsigned)
Package and sign in one step
Generate certificate + package in one step
Unsigned output (Store submission or external signing)
Self-contained deployment
Custom output path and name
What the command does
- Locates `Package.appxmanifest` — looks in input folder, then current directory (or uses
--manifest) - Copies manifest + assets into a staging layout alongside your app files
- Discovers manifest-referenced files — any non-image file referenced in the manifest (e.g., AppExtension payloads like
manifest.json, config files) is automatically copied from the manifest directory or input folder if missing from staging - Generates `resources.pri` — Package Resource Index for UWP-style resource lookup (skip with
--skip-pri) - Runs `makeappx pack` — creates the
.msixpackage file - Signs the package (if
--certprovided) — callssigntoolwith your certificate
Output: a .msix file that can be installed on Windows via double-click or Add-AppxPackage.
Installing the MSIX for testing
Recommended workflow
- Build your app (
dotnet build,cmake --build,npm run make, etc.) - Package —
winapp package <build-output> --cert ./devcert.pfx - Trust cert (first time) —
winapp cert install ./devcert.pfx(admin) - Install — double-click the
.msixorAdd-AppxPackage ./myapp.msix - Test the installed app from the Start menu
Advanced: External content catalog
For sparse packages with AllowExternalContent, you may need a code integrity catalog:
Bundling multiple architectures
Create an MSIX bundle from multiple per-architecture build outputs:
How it works: When multiple input folders are passed, winapp package:
- Detects the architecture of each folder's primary executable from its PE header
- Resolves a manifest for each slice (see below)
- Validates that all slices share the same Identity, Capabilities, and Dependencies
- Packs each folder into an intermediate unsigned
.msix - Bundles them into a single
.msixbundleusingmakeappx bundle - Signs only the bundle (not individual slices) — the signature covers all packages inside
Manifest resolution: Each slice needs a manifest. Resolution order:
--manifest <path>uses one manifest for all slices (architecture auto-stamped per folder)- Per-folder
Package.appxmanifestif present in the input folder - Fallback to
Package.appxmanifestin the current working directory
The 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.
CI/CD
GitHub Actions
Use the microsoft/setup-winapp action to install winapp on GitHub-hosted runners:
Tips for CI/CD pipelines:
- Use
--quiet(or-q) to suppress progress output - Use
--if-exists skipwithwinapp cert generateto avoid regenerating existing certificates - Store your PFX certificate as a repository secret and decode it in CI
- Use
--use-defaults(or--no-prompt) withwinapp initto avoid interactive prompts
Tips
- The
packagecommand aliases topack— both work identically Package.appxmanifestPublisher must match the certificate publisher — usewinapp cert generate --manifestto ensure they match- Use
--skip-priif your app doesn't use Windows resource loading (e.g., most Electron/Rust/C++ apps without UWP resources) - For framework-specific packaging paths (Electron, .NET, Rust, etc.), see the
winapp-frameworksskill - The
--executableflag overrides the entry point in the manifest — useful when your exe name differs from what's inPackage.appxmanifest - For production distribution, use a certificate from a trusted CA and add
--timestampwhen signing withwinapp sign
Sparse identity packages
To 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.
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.
Related skills
- Need a manifest first? See
winapp-manifestto generatePackage.appxmanifest - Need a certificate? See
winapp-signingfor certificate generation and management - Having issues? See
winapp-troubleshootfor a command selection flowchart and error solutions
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 14 Nov 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/winapp/skills/winapp-package/SKILL.md
Popularity
- Repository stars
- 1,349
- Repository forks
- 90
- 7-day trend score
- 36
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/winappcli/winapp-package)