Install and verify the .NET SDK, WinApp CLI, templates, and Windows Developer Mode.
---
name: winui-setup
description: "Install and verify the prerequisites the win-dev-skills WinUI 3 toolchain depends on — .NET SDK 10, the WinApp CLI, the WinUI 3 .NET templates, and Developer Mode. Use when setting up a new machine, after a Windows reset, or when another winui skill reports a missing prerequisite (e.g., `winapp` not found, `dotnet` not found, the WinUI 3 templates are missing, or Developer Mode is off)."
disable-model-invocation: true
---
### Purpose
Install and verify the prerequisites every other `winui-*` skill assumes are already present on the machine.
This skill is **idempotent** — every step checks first, skips if already satisfied, prints `[OK] already installed` and moves on. Re-running on a fully set-up machine is a fast no-op.
### Steps
The first thing to do is **batch all detection up front** — run every check in parallel/together so you can show the user the full picture before installing anything. Then install only what's missing.
#### Detect everything
Run all of these together; collect the results:
```powershell
# .NET SDK — accept any installed SDK >= 8.0
$dotnetSdks = (& dotnet --list-sdks 2>$null) -replace ' \[.*$',''
$dotnetOk = $dotnetSdks | ForEach-Object { [version]($_ -split '-')[0] } |
Where-Object { $_.Major -ge 8 } | Select-Object -First 1… load the full skill through Skill Me