ChsBuffer.Avalonia.Native.Static.osx-x64 12.2.0.1

dotnet add package ChsBuffer.Avalonia.Native.Static.osx-x64 --version 12.2.0.1
                    
NuGet\Install-Package ChsBuffer.Avalonia.Native.Static.osx-x64 -Version 12.2.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ChsBuffer.Avalonia.Native.Static.osx-x64" Version="12.2.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ChsBuffer.Avalonia.Native.Static.osx-x64" Version="12.2.0.1" />
                    
Directory.Packages.props
<PackageReference Include="ChsBuffer.Avalonia.Native.Static.osx-x64" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ChsBuffer.Avalonia.Native.Static.osx-x64 --version 12.2.0.1
                    
#r "nuget: ChsBuffer.Avalonia.Native.Static.osx-x64, 12.2.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ChsBuffer.Avalonia.Native.Static.osx-x64@12.2.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ChsBuffer.Avalonia.Native.Static.osx-x64&version=12.2.0.1
                    
Install as a Cake Addin
#tool nuget:?package=ChsBuffer.Avalonia.Native.Static.osx-x64&version=12.2.0.1
                    
Install as a Cake Tool

ChsBuffer.Avalonia.Native.Static

Statically link AvaloniaNative into a macOS NativeAOT application. The meta package includes both osx-x64 and osx-arm64; use the corresponding RID package to restore only one architecture.

<PropertyGroup>
  <PublishAot>true</PublishAot>
</PropertyGroup>
<ItemGroup>
  <PackageReference Include="Avalonia.Desktop" Version="12.2.0" />
  <PackageReference Include="ChsBuffer.Avalonia.Native.Static" Version="12.2.0.1" />
</ItemGroup>

Publish on macOS with dotnet publish -c Release -r osx-arm64 (or osx-x64). Keep AvaloniaNativePlatformOptions.AvaloniaNativeLibraryPath unset: that option explicitly requests dynamic loading and bypasses Avalonia's default P/Invoke. Builds without NativeAOT or without a macOS RID load libAvaloniaNative.dylib as usual.

The restored Avalonia and Avalonia.Native versions must be exactly 12.2.0 (HFG0004 otherwise); the fourth part of the package version is a HostForge packaging revision. The archives target macOS 12.0; the application must also meet the system requirements of its .NET and Avalonia versions.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ChsBuffer.Avalonia.Native.Static.osx-x64:

Package Downloads
ChsBuffer.Avalonia.Native.Static

Static Avalonia.Native libraries for NativeAOT on all supported RIDs.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
12.2.0.1 223 11/23/2026
12.1.6.1 290 11/16/2026
12.1.4.1 359 10/14/2026
12.1.3 149 10/14/2026