diff --git a/SUMMARY.md b/SUMMARY.md index e4463dc..aa64519 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -148,6 +148,7 @@ * [Routing](guides/deep-dives/reactiveui/routing.md) * [Data Persistence](guides/deep-dives/reactiveui/data-persistence.md) * [Developer Guides](guides/developer-guides/README.md) + * [🏭 Build Avalonia from Source](guides/developer-guides/build-avalonia-from-source.md) * [Comparison of Avalonia with WPF and UWP](guides/developer-guides/comparison-of-avalonia-with-wpf-and-uwp.md) * [Debugging Previewer](guides/developer-guides/debugging-previewer.md) * [MacOS Development](guides/developer-guides/macos-development.md) diff --git a/guides/developer-guides/build-avalonia-from-source.md b/guides/developer-guides/build-avalonia-from-source.md new file mode 100644 index 0000000..ca25e2b --- /dev/null +++ b/guides/developer-guides/build-avalonia-from-source.md @@ -0,0 +1,57 @@ +# 🏭 Build Avalonia from Source + +## Prerequisites + +--- + +```bash +git clone https://github.com/AvaloniaUI/Avalonia.git +cd Avalonia +git submodule update --init --recursive +``` + +## .NET Core (Windows, Linux and macOS) + +--- + +### Install .NET Core + +* [.NET Core - All Supported OS's](https://www.microsoft.com/net/core) + +### Build + +```bash +cd samples/ControlCatalog.NetCore +dotnet restore +dotnet build +``` + +### Run + +```bash +cd samples/ControlCatalog.NetCore +dotnet restore +dotnet run +``` + +## Special Requirements + +--- + +### Windows + +#### Install Visual Studio + +* [Visual Studio 2019](https://www.visualstudio.com/en/downloads/) + +#### Build + +```bash +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` + \ No newline at end of file