feat: migration Build Avalonia from Source

This commit is contained in:
Giuseppe Lippolis 2021-11-06 10:35:45 +01:00
Родитель bddfebf2d8
Коммит 0561cc10c5
2 изменённых файлов: 58 добавлений и 0 удалений

Просмотреть файл

@ -148,6 +148,7 @@
* [Routing](guides/deep-dives/reactiveui/routing.md) * [Routing](guides/deep-dives/reactiveui/routing.md)
* [Data Persistence](guides/deep-dives/reactiveui/data-persistence.md) * [Data Persistence](guides/deep-dives/reactiveui/data-persistence.md)
* [Developer Guides](guides/developer-guides/README.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) * [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) * [Debugging Previewer](guides/developer-guides/debugging-previewer.md)
* [MacOS Development](guides/developer-guides/macos-development.md) * [MacOS Development](guides/developer-guides/macos-development.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`