What problem does it solve?
Migrating UWP applications to WinUI 3 / Windows App SDK involves dozens of breaking API changes, and AI-generated code frequently uses legacy UWP patterns that fail at runtime. This Skill provides verified API mappings and corrected code snippets so migrations and code reviews avoid the most common errors.
Core Features & Use Cases
- API Mapping Tables: Covers namespace changes, threading (CoreDispatcher to DispatcherQueue), windowing (CoreWindow to AppWindow), dialogs, pickers, background tasks, and GetForCurrentView replacements.
- Common Mistake Detection: Documents the top Copilot code generation errors, such as ContentDialog without XamlRoot, MessageDialog usage, and CoreDispatcher calls, with corrected WinUI 3 code.
- Migration Checklist: A 15-step checklist covering project file updates, unit test migration to WinUI test templates, and packaged versus unpackaged configuration.
- Use Case: When reviewing generated C# code for a WinUI 3 desktop app, use this Skill to verify that dialogs set XamlRoot, pickers are initialized with a window handle, and threading uses DispatcherQueue.
Quick Start
Review this C# UWP code and migrate it to WinUI 3 using the correct Windows App SDK APIs.