winui-app

Bootstrap, build, and verify WinUI 3 desktop apps with C# and the Windows App SDK.

Updated Jun 14, 2026
One-click install
npx skills add https://github.com/ironkid90-s/lucky5-v7 --skill winui-app-ironkid90-s
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: winui-app
Source: https://github.com/ironkid90-s/lucky5-v7/tree/main/.github/skills/winui-app
Command: npx skills add https://github.com/ironkid90-s/lucky5-v7 --skill winui-app-ironkid90-s

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Setting up and building WinUI 3 apps involves machine readiness checks, packaging model decisions, template scaffolding, and opaque XAML compiler failures that are hard to diagnose without grounded guidance. ## Core Features & Use Cases - Environment Setup and Scaffolding: Runs a bundled WinGet configuration to enable Developer Mode, install Visual Studio Community 2026 with WinUI workloads, verify the winui template, and scaffold a new app with dotnet new winui. - Design and Implementation Guidance: Provides reference files covering shell navigation, controls, adaptive layout, Fluent theming, Mica, accessibility, performance, and CommunityToolkit decisions grounded in Microsoft Learn, WinUI Gallery, and WindowsAppSDK-Samples. - Build, Launch, and Recovery Workflows: Verifies real app launches with objective startup signals and recovers from opaque MSB3073 or XamlCompiler.exe failures by diffing against a fresh template scaffold. - Use Case: Ask for a new WinUI 3 desktop app and the Skill prepares the machine, scaffolds the project, builds it, launches it, and confirms a real top-level window before handing control back. ## Quick Start Ask the assistant to create a new WinUI 3 desktop app in your current workspace and let it set up the environment, scaffold, build, and launch the app for you.

Frequently Asked Questions about winui-app

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a new WinUI 3 app from the command line?

Verify the template with `dotnet new list winui`, then scaffold with `dotnet new winui -o <name>`. Supported options include framework choice, MVVM, central package management, and unpackaged mode. Build the generated project and launch it to confirm a real window appears.

What do I need installed to build WinUI 3 apps on Windows?

You need Windows 10 build 17763 or later, Visual Studio with the Managed Desktop, Universal, and Windows App SDK C# components, Windows SDK 10.0.19041.0 or later, and a supported .NET SDK. The bundled WinGet configuration installs these prerequisites automatically.

Should my WinUI 3 app be packaged or unpackaged?

Choose packaged for Store-like workflows, Visual Studio F5 deployment, and package-identity APIs. Choose unpackaged when you need repeatable CLI build-and-run loops or direct .exe launches. Decide before writing startup, storage, and launch code.

Why does my WinUI build fail with MSB3073 or XamlCompiler.exe errors?

These opaque failures usually come from startup or shared-resource issues rather than the last edited line. Scaffold a fresh comparison app with the same packaging model, diff App.xaml and merged resource dictionaries, and revert toward the template shape incrementally.

When should I use CommunityToolkit controls instead of built-in WinUI controls?

Use CommunityToolkit only when built-in WinUI controls and system styling hooks do not cover the need cleanly, such as settings surfaces or segmented controls. Add the smallest package set that solves the problem and document why the built-in alternative was rejected.

Does WinUI 3 support both light and dark mode?

Yes, and apps should support both by default using theme-aware resources, system brushes, and WinUI styling hooks instead of hard-coded colors. Single-theme output is treated as an exception requiring an explicit request or product constraint.