
winapp-frameworks
✓ Official★ 1,100by microsoft · part of microsoft/winappcli
Framework-specific Windows development guidance for Electron, .NET (WPF, WinForms), C++, Rust, Flutter, and Tauri. Use when packaging or adding Windows…
This is the playbook your agent receives when the skill activates — you don't need to read it to use the skill, but it's here to audit before installing.
name: winapp-frameworks description: Framework-specific Windows development guidance for Electron, .NET (WPF, WinForms), C++, Rust, Flutter, and Tauri. Use when packaging or adding Windows features to an Electron app, .NET desktop app, Flutter app, Tauri app, Rust app, or C++ app. version: 0.4.1
When to use
Use this skill when:
- Working with a specific app framework and need to know the right winapp workflow
- Choosing the correct install method (npm package vs. standalone CLI)
- Looking for framework-specific guides for step-by-step setup, build, and packaging
Each framework has a detailed guide — refer to the links below rather than trying to guess commands.
Framework guides
| Framework | Install method | Guide |
|---|---|---|
| Electron | npm install --save-dev @microsoft/winappcli | Electron setup guide |
| .NET (WPF, WinForms, Console) | winget install Microsoft.winappcli | .NET guide |
| C++ (CMake, MSBuild) | winget install Microsoft.winappcli | C++ guide |
| Rust | winget install Microsoft.winappcli | Rust guide |
| Flutter | winget install Microsoft.winappcli | Flutter guide |
| Tauri | winget install Microsoft.winappcli | Tauri guide |
Key differences by framework
Electron (npm package)
Use the npm package (@microsoft/winappcli), not the standalone CLI. The npm package includes:
- The native winapp CLI binary bundled inside
node_modules - A Node.js SDK with helpers for creating native C#/C++ addons
- Electron-specific commands under
npx winapp node - Generated JS bindings (
.winapp/bindings/) for direct JavaScript access to Windows App SDK APIs
Quick start:
npm install --save-dev @microsoft/winappcli
npx winapp init . --use-defaults --add-js-bindings
npx winapp node create-addon --template cs # create a C# native addon
npx winapp node add-electron-debug-identity # register identity for debuggingWindows integration guidance:
- Use JS bindings to call Windows App SDK APIs directly from JavaScript without native addons (for example AI APIs, notifications, and file pickers). Custom WinRT components with .winmd metadata can also be added via
winapp.jsBindings.additionalWinmdsin package.json. - Use native addons when you need Win32/COM APIs, third-party C++ libraries, or .NET assemblies:
--template cppfor C++ (node-gyp), or--template csfor C#. - Mixing JS bindings and native addons in one Electron app is fine.
Additional Electron guides:
- Notification JS bindings guide
- Windows APIs JS bindings guide (file picker + imaging)
- Phi Silica JS bindings guide
- WinML JS bindings guide
- Packaging guide
- C++ notification addon guide
- WinML addon guide
- Phi Silica addon guide
.NET (WPF, WinForms, Console)
.NET projects have direct access to Windows APIs. Key differences:
- Projects with NuGet references to
Microsoft.Windows.SDK.BuildToolsorMicrosoft.WindowsAppSDKdon't needwinapp.yaml— winapp auto-detects SDK versions from the.csproj - The key prerequisite is
Package.appxmanifest, notwinapp.yaml - No native addon step needed — unlike Electron, .NET can call Windows APIs directly
winapp initautomatically adds theMicrosoft.Windows.SDK.BuildTools.WinAppNuGet package, enablingdotnet runwith automatic identity registration
If you already have a Package.appxmanifest (e.g., WinUI 3 apps or projects with an existing packaging setup), you likely don't need winapp init — your project is already configured for packaged builds. Just make sure:
- Your
.csprojreferences theMicrosoft.WindowsAppSDKNuGet package (WinUI 3 apps already have this) - The project properties are set up for packaged builds (e.g.,
<WindowsPackageType>MSIX</WindowsPackageType>or equivalent) - WinUI 3 apps created from Visual Studio templates are typically already fully configured
Quick start:
winapp init . --use-defaults
dotnet build <path-to-project.csproj> -c Debug -p:Platform=x64
winapp run bin\x64\Debug\<tfm>\win-x64\Replace <tfm> with your target framework (e.g., net10.0-windows10.0.26100.0), and adjust x64 to match your target architecture.
C++ (CMake, MSBuild)
C++ projects use winapp primarily for SDK projections (CppWinRT headers) and packaging:
winapp init --setup-sdks stabledownloads Windows SDK + App SDK and generates CppWinRT headers- Headers generated in
.winapp/generated/include - Response file at
.cppwinrt.rspfor build system integration - Add
.winapp/packagesto include/lib paths in your build system
Rust
- Use the
windowscrate for Windows API bindings - winapp handles manifest, identity, packaging, and certificate management
- Typical build output:
target/release/myapp.exe
Flutter
- Flutter handles the build (
flutter build windows) - winapp handles manifest, identity, packaging
- Build output:
build\windows\x64\runner\Release\
Tauri
- Tauri has its own bundler for
.msiinstallers - Use winapp specifically for MSIX distribution and package identity features
- winapp adds capabilities beyond what Tauri's built-in bundler provides (identity, sparse packages, Windows API access)
Debugging by framework
| Framework | Recommended command | Notes |
|---|---|---|
| .NET | winapp run .\bin\x64\Debug\<tfm>\win-x64\ | Build with dotnet build -c Debug -p:Platform=x64 first; GUI apps launch directly; console apps need --with-alias |
| C++ | winapp run .\build\Debug --with-alias | Console apps need --with-alias + uap5:ExecutionAlias in manifest |
| Rust | winapp run .\target\debug --with-alias | Console apps need --with-alias + uap5:ExecutionAlias in manifest |
| Flutter | winapp run .\build\windows\x64\runner\Debug | GUI app — plain winapp run works |
| Tauri | winapp run .\dist | Stage exe to dist/ first (avoids copying entire target/ tree); GUI app |
| Electron | npx winapp node add-electron-debug-identity | Uses Electron-specific identity registration; winapp run is not recommended for Electron |
Key rules:
- GUI apps (Flutter, Tauri, WPF): use
winapp run <build-output>— launches via AUMID activation - Console apps (C++, Rust, .NET console): use
winapp run <build-output> --with-alias— launches via execution alias to preserve stdin/stdout. Requiresuap5:ExecutionAliasinPackage.appxmanifest - Electron: different mechanism — uses
npx winapp node add-electron-debug-identitybecauseelectron.exeis innode_modules/, not your build output - Startup debugging (any framework): use
winapp create-debug-identity <exe>so your IDE can F5-launch the exe with identity from the first instruction
For full debugging scenarios and IDE setup, see the Debugging Guide.
Related skills
- Setup:
winapp-setup— initial project setup withwinapp init - Manifest:
winapp-manifest— creating and customizingPackage.appxmanifest - Signing:
winapp-signing— certificate generation and management - Packaging:
winapp-package— creating MSIX installers from build output - Identity:
winapp-identity— enabling package identity for Windows APIs during development - Not sure which command to use? See
winapp-troubleshootfor a command selection flowchart
npx skills add https://github.com/microsoft/winappcli --skill winapp-frameworksRun this in your project — your agent picks the skill up automatically.
No common issues documented yet. If you hit a problem, the repository's GitHub Issues page is the best place to look.
Licensed under MIT— you can use, modify, and redistribute it under that license's terms.