Skip to main content
Version: 11.0.x

Create and Run a Project

Install Templates

Before starting, ensure that you have installed the Avalonia templates:

dotnet new install Avalonia.Templates

Create the Project

To get started, we're going to use the MVVM Avalonia template: Avalonia MVVM Application (or avalonia.mvvm in the CLI).

Run the command:

dotnet new avalonia.mvvm -o GetStartedApp

This will create a new folder called GetStartedApp containing the new project.

Run the Project

We're now ready to run the project!

Go into the GetStartedApp directory and run:

dotnet run

The solution will build and run.

You should now be running your first Avalonia application!