Edit

Share via


Quick start: Set up your environment and create a WinUI project

This quick start guide walks you through setting up your WinUI and Windows App SDK development environment and creating your first app. To develop WinUI apps, you need:

Set up your development environment

Open Windows Terminal and run the following command in PowerShell to automatically set up your environment using a WinGet Configuration file. This will:

  • Install Visual Studio 2026 with the required workloads
  • Enable Developer Mode
winget configure -f https://aka.ms/winui-config

Tip

To review the config file and learn more, see its [README](https://github.com/microsoft/winget-dsc/blob/main/samples/Configuration%20files/Learn%20tutorials/WinUI/README.md] on GitHub.

Create and launch your first WinUI app

  1. Open Visual Studio and select Create a new project.

  2. Search for WinUI, select the WinUI Blank App (Packaged) C# project template, and select Next.

    Blank, packaged WinUI C# desktop app

  3. Enter a project name and select Create.

    Specify project details

  4. Press Start (F5) to build and run your app.

    Build and run your project

    Your app builds, deploys, and launches in debug mode:

    Hello World project built and running

    You've built and launched your first WinUI app! 🎉

Next steps

Hello WinUI
Build your first WinUI app
Ready to go further? Follow the step-by-step tutorial to build a full WinUI app.

WinUI Gallery
WinUI Gallery
Explore interactive examples of WinUI controls, features, and functionality.

Samples icon
Samples and resources
Browse code samples, starter projects, and tools to accelerate your development.