Building Avalonia


Avalonia requires at least Visual Studio 2017 and .NET Core SDK 2.0 to build on Windows.

Clone the Avalonia repository

git clone
git submodule update --init

Open in Visual Studio

Open the Avalonia.sln solution in Visual Studio 2015 or newer. The free Visual Studio Community edition works fine. Run the Samples\ControlCatalog.Desktop project to see the sample application.


It's not possible to build the whole project on Linux/OSX. You can only build the subset targeting .NET Standard and .NET Core (which is, however, sufficient to get UI working on Linux/OSX). If you want to something that involves changing platform-specific APIs you'll need a Windows machine.

MonoDevelop, Xamarin Studio and Visual Studio for Mac aren't capable of properly opening our solution. You can use Rider (at least 2017.2 EAP) or VSCode instead. They will fail to load most of platform specific projects, but you don't need them to run on .NET Core.

Install the latest version of .NET Core

Go to and follow instructions for your OS. You need SDK (not just "runtime") package.

Clone the Avalonia repository

git clone
git submodule update --init --recursive

Build and Run Avalonia

dotnet restore
dotnet run