.NET MAUI Documentation

Home

Overview

In this tutorial you will create your first .NET Multi‑platform App UI (MAUI) application, run it on Windows, Android, and iOS, and explore the project structure.

Prerequisites

Step 1 – Create a New MAUI Project

Open Visual Studio and select Create a new project. Choose .NET MAUI App (Preview) and click Next.

dotnet new maui -n FirstMauiApp

Alternatively, use the CLI:

dotnet new maui -n FirstMauiApp
cd FirstMauiApp
dotnet build

Step 2 – Explore the Project Structure

The generated solution contains the following key folders:

Step 3 – Run the App

Press F5 or click Run in Visual Studio. Choose a target device (Windows, Android emulator, or iOS simulator).

The default app shows a simple label:

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             x:Class="FirstMauiApp.MainPage">
    <VerticalStackLayout Spacing="25" Padding="30">
        <Label Text="Welcome to .NET MAUI!" 
               FontSize="24"
               HorizontalOptions="Center" />
    </VerticalStackLayout>
</ContentPage>

Next Steps