Installation
This guide explains how to configure your project to use Avalonia Accelerate packages.
NuGet Package Source
Avalonia Accelerate packages are distributed via nuget.org.
备注
Prior to October 13 2025, installing Avalonia Accelerate components required setting up a dedicated NuGet feed. That feed is no longer required and you should use nuget.org instead.
Add the NuGet Package
Add the desired Avalonia Accelerate package to your project:
dotnet add package Avalonia.Controls.MediaPlayer
(Replace with the package name you need, e.g., Avalonia.Controls.WebView
, Avalonia.Controls.Markdown
, etc.)
Add the License Key
Include your Avalonia UI license key in the executable project file (.csproj
):
<ItemGroup>
<AvaloniaUILicenseKey Include="YOUR_LICENSE_KEY" />
</ItemGroup>
For multi-project solutions, you can store your license key in an environment variable or a shared props file to avoid duplication.