Перейти к основному содержимому
Версия: 11.0.0

getting-started

s--- id: getting-started title: Starting with the CLI​

If you build your projects with the .NET CLI, then follow the procedures here to install the Avalonia UI templates and create your first application.

Установка шаблонов Avalonia UI​

To install the Avalonia UI templates, run the following command:

dotnet new install Avalonia.Templates
к сведению

Для .NET 6.0 или более ранней версии, замените install на --install

Создание нового Приложения​

Once the templates are installed, you can create a new Avalonia UI application by running the following command:

dotnet new avalonia.app -o MyApp

Данная команда создаст папку с именем MyApp, включающую файлы вашего приложения. Для запуска приложения, перейдите в папку MyApp и выполните команду:

dotnet run

Поздравляем, ваше приложение запущено!