Ready to get started with Avalonia? Follow these steps to install the templates and create your first application.
To install the Avalonia templates, run the following command:
dotnet new install Avalonia.Templates
Note: For .NET 6.0 and earlier, replace
Once the templates are installed, you can create a new Avalonia application by running the following command:
dotnet new avalonia.app -o MyApp
This will create a new folder called
MyAppwith your application files. To run your application, navigate to the
MyAppdirectory and run:
That's it! Your Avalonia application is now up and running. You can open the
MyAppfolder to start improving and building upon your application.