Skip to main content
Version: 11.0.0

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 simplest Avalonia template: Avalonia Application (or in the CLI).

Run the command:
dotnet new -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

You should now be running your first Avalonia application!