Avalonia stable releases are distributed via NuGet.org. The main packages are:
- Avalonia contains the core framework
- Avalonia.Desktop contains libraries for running the framework on Windows, Linux and Mac OSX
- Avalonia.ReactiveUI contains support for the ReactiveUI MVVM framework
The other Avalonia packages you see listed on NuGet.org are sub-packages installed by the above.
We also have a nightly build feed which tracks the current state of master. Although these packages are less stable than the release on NuGet.org, you'll get all the latest features and bugfixes right away and many of our users actually prefer this feed!
To use the nightly build feed, add a
nuget.config file to your project, in the directory which contains your solution:
<?xml version="1.0" encoding="utf-8"?> <configuration> <packageSources> <add key="AvaloniaCI" value="https://www.myget.org/F/avalonia-ci/api/v2" /> </packageSources> </configuration>
And then in the NuGet package manager, select the
AvaloniaCI package source.
Pull request build results are published to a separate feed:
To get the version for a particular pull request you need to check the build number from the PR build on Azure Pipelines. Then you can use this build to determine the PR package version.
This feed contains packages with UNTRUSTED source code (anyone can create a PR), so be sure to read the diff of the corresponding pull request. NuGet packages can contain malicious code even in build-time scripts.