🏭
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.

OSX

The native interop layer requires code generation, this can be triggered by: ./build.sh --target CompileNative
Export as PDF
Copy link
Edit on GitHub
Outline
Prerequisites
.NET Core (Windows, Linux and macOS)
Install .NET Core
Build
Run
Special Requirements
Windows
OSX