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

Build Avalonia from Source

Prerequisites​


git clone https://github.com/AvaloniaUI/Avalonia.git
cd Avalonia
git submodule update --init --recursive

.NET Core (Windows, Linux and macOS)​


Install .NET Core​

At least the following versions must be installed:

  • .NET Core 3.1 SDK
  • .NET 6 SDK

Build​

cd samples/ControlCatalog.NetCore
dotnet restore
dotnet build

Run​

cd samples/ControlCatalog.NetCore
dotnet restore
dotnet run

Special Requirements​


Windows​

Install Visual Studio​

Build​

Open Avalonia.sln in Visual Studios 2019 or above.

macOS​

The native interop layer requires code generation, this can be triggered by: ./build.sh --target CompileNative