winapp-frameworks

作成者: microsoft

Electron、.NET(WPF、WinForms)、C++、Rust、Flutter、Tauri向けのフレームワーク固有のWindows開発ガイダンス。パッケージング時やWindowsの追加時に使用します…

npx skills add https://github.com/microsoft/winappcli --skill winapp-frameworks

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

FrameworkInstall methodGuide
Electronnpm install --save-dev @microsoft/winappcliElectron setup guide
.NET (WPF, WinForms, Console)winget install Microsoft.winappcli.NET guide
.NET MAUIwinget install Microsoft.winappcliMAUI guide + winapp-maui skill
C++ (CMake, MSBuild)winget install Microsoft.winappcliC++ guide
Rustwinget install Microsoft.winappcliRust guide
Flutterwinget install Microsoft.winappcliFlutter guide
Tauriwinget install Microsoft.winappcliTauri 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 debugging

Windows 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.additionalWinmds in package.json.
  • Use native addons when you need Win32/COM APIs, third-party C++ libraries, or .NET assemblies: --template cpp for C++ (node-gyp), or --template cs for C#.
  • Mixing JS bindings and native addons in one Electron app is fine.

Additional Electron guides:

.NET (WPF, WinForms, Console)

.NET projects have direct access to Windows APIs. Key differences:

  • Projects with NuGet references to Microsoft.Windows.SDK.BuildTools or Microsoft.WindowsAppSDK don't need winapp.yaml — winapp auto-detects SDK versions from the .csproj
  • The key prerequisite is Package.appxmanifest, not winapp.yaml
  • No native addon step needed — unlike Electron, .NET can call Windows APIs directly
  • winapp init automatically adds the Microsoft.Windows.SDK.BuildTools.WinApp NuGet package, enabling dotnet run with automatic identity registration
  • Arguments written after dotnet run go to the launched application, exactly as they would without the package; configure the launcher itself with the WinAppRun* MSBuild properties
  • Example combining both: dotnet run -p:WinAppRunDetach=true --app-arg (WinApp detaches, the app receives --app-arg)
  • Use -- when the app's flag is also a dotnet run option (--configuration, --framework, --project, -c, -f, -r, ...), e.g. dotnet run -- --configuration Release; otherwise the SDK claims it and the app never sees it

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 .csproj references the Microsoft.WindowsAppSDK NuGet 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.

.NET MAUI

MAUI has one important quirk: its checked-in Platforms/Windows/Package.appxmanifest is full of $placeholder$ tokens that winapp package does not resolve. MAUI's resizetizer fills them at build/publish time into a generated manifest:

  • Resizetizer manifest: obj\<Config>\<TFM>\<RID>\resizetizer\m\Package.appxmanifest
  • Fully-resolved output manifest: bin\<Config>\<TFM>\<RID>\AppxManifest.xml

Publish the Windows head first, then point winapp package --manifest at the generated manifest — never the source one. See the dedicated winapp-maui skill for the full workflow, CI examples, and troubleshooting.

C++ (CMake, MSBuild)

C++ projects use winapp primarily for SDK projections (CppWinRT headers) and packaging:

  • winapp init --setup-sdks stable downloads Windows SDK + App SDK and generates CppWinRT headers
  • Headers generated in .winapp/generated/include
  • Response file at .cppwinrt.rsp for build system integration
  • Add .winapp/packages to include/lib paths in your build system

Rust

  • Use the windows crate 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 .msi installers
  • 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

FrameworkRecommended commandNotes
.NETwinapp 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-aliasConsole apps need --with-alias + uap5:ExecutionAlias in manifest
Rustwinapp run .\target\debug --with-aliasConsole apps need --with-alias + uap5:ExecutionAlias in manifest
Flutterwinapp run .\build\windows\x64\runner\DebugGUI app — plain winapp run works
Tauriwinapp run .\distStage exe to dist/ first (avoids copying entire target/ tree); GUI app
Electronnpx winapp node add-electron-debug-identityUses 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. Requires uap5:ExecutionAlias in Package.appxmanifest
  • Electron: different mechanism — uses npx winapp node add-electron-debug-identity because electron.exe is in node_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 with winapp init
  • Manifest: winapp-manifest — creating and customizing Package.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
  • MAUI: winapp-maui — packaging/signing .NET MAUI Windows apps and resolving the resizetizer manifest
  • Not sure which command to use? See winapp-troubleshoot for a command selection flowchart

CLI reference

Run winapp <command> --help for current command options, or winapp --cli-schema for the complete machine-readable command schema.

microsoftのその他のスキル

oss-growth
microsoft
OSS成長ハッカーのペルソナ
agent-framework-azure-ai-py
microsoft
Microsoft Agent Framework Python SDK(agent-framework-azure-ai)を使用してAzure AI Foundryエージェントを構築します。AzureAIAgentsProviderを使用した永続的なエージェントの作成、ホスト型ツール(コードインタープリター、ファイル検索、ウェブ検索)の使用、MCPサーバーの統合、会話スレッドの管理、ストリーミング応答の実装時に使用します。関数ツール、構造化出力、マルチツールエージェントをカバーします。
development
airunway-aks-setup
microsoft
AKS上でAI Runwayをセットアップ — ベアクラスターからモデル実行まで。クラスター検証、コントローラーインストール、GPU評価、プロバイダー設定、初回デプロイをカバー。対象: 「AI Runwayのセットアップ」「AKSクラスターのオンボード」「AI Runwayのインストール」「airunway setup」「AKSへのモデルデプロイ」「AKSでのGPU推論」「AKSでのKAITOセットアップ」「AKSでのLLM実行」「AKSでのvLLM」「AKSでのモデルサービング設定」「AI Runwayコントローラー」。
devops
appinsights-instrumentation
microsoft
Azure Application Insightsを使用したWebアプリのインストルメンテーションに関するガイダンス。テレメトリパターン、SDKセットアップ、構成リファレンスを提供します。対象: アプリのインストルメンテーション方法、App Insights SDK、テレメトリパターン、App Insightsとは何か、Application Insightsガイダンス、インストルメンテーション例、APMベストプラクティス。
devops
applicationinsights-web-ts
microsoft
Application Insights JavaScript SDK(@microsoft/applicationinsights-web)を使用してブラウザ/Webアプリを計測します。Real User Monitoring(RUM)— ページビュー、クリック、AJAX/fetch依存関係、例外、カスタムイベント、およびバックエンドのOpenTelemetryトレースに関連付けられたブラウザ側のGenAIエージェントトレースに使用します。SDKローダースクリプトとnpmセットアップ、フレームワーク拡張機能(React、React Native、Angular)、Click Analytics、テレメトリ初期化子、およびブラウザから生成されるエージェント/ツール/モデルスパンのOTel GenAIセマンティック規約をカバーします。
devops
azure-ai-anomalydetector-java
microsoft
Azure AI Anomaly Detector SDK for Javaを使用して異常検出アプリケーションを構築します。単変量/多変量異常検出、時系列分析、またはAIを活用したモニタリングを実装する際に使用します。
development
azure-ai-language-conversations-py
microsoft
azure-ai-language-conversations Python SDKを使用して会話言語理解(CLU)を実装します。ConversationAnalysisClientを使用して会話の意図とエンティティを分析する場合、NLP機能を構築する場合、またはアプリケーションに言語理解を統合する場合に使用します。
development
azure-ai-ml-py
microsoft
Azure Machine Learning SDK v2 for Python。MLワークスペース、ジョブ、モデル、データセット、コンピュート、パイプラインに使用します。 トリガー: 「azure-ai-ml」、「MLClient」、「ワークスペース」、「モデルレジストリ」、「トレーニングジョブ」、「データセット」。
development