5f21d670b0d4df30d4c4240427224925138799eb
StaticLink.Avalonia
Static native libraries for Avalonia single-file NativeAOT publishing.
Install
dotnet add package StaticLink.Avalonia
Or add it manually:
<PackageReference Include="StaticLink.Avalonia" Version="3.119.2-7151.10" />
For macOS, also reference StaticLink.Avalonia.Native. This package is macOS-only and must match your Avalonia version because it contains libAvaloniaNative.a.
<PackageReference Include="StaticLink.Avalonia.Native" Version="11.3.14.1" />
Publish
dotnet publish -c Release -r win-x64 \
-p:PublishAot=true \
-p:SelfContained=true \
-p:PublishSingleFile=true \
-p:StripSymbols=true
Use the RID you need, such as win-x86, linux-x64, linux-arm64, osx-arm64, or osx-x64.
For macOS, avoid the Metal renderer for fully static output. Use OpenGL or Software.
Description
For Avalonia to publish single-file AOT executable
12 MiB
0 Stars
1 Watchers
0 Forks
Languages
Shell
45.2%
PowerShell
42.9%
C#
11.9%