Skip to main content
Version: 11.0.x

Create and Run a Project

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:

Bash
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:

Bash
dotnet run

The solution will build and run.

You should now be running your first Avalonia application!

Application runningApplication running