Avalonia for macOS

Build native macOS apps in .NET, with no Mac needed to compile.

Platform support

Windowing

Native Objective-C++ backend

Written and maintained by us, not the .NET macOS workload.

Rendering

Skia

GPU accelerated, with a software fallback.

Architectures

Apple silicon and Intel

ARM64 and x64, shippable as one universal binary.

Runtime

.NET 8.0 or later

No Xamarin.Mac, and no Mac required to compile.

Every tested OS version is published in the support matrix.

Shipping today

Tools built for people who notice.

Designers and profiler users are among the least forgiving audiences a desktop application can have. These are the Mac builds those teams ship.

Icons8 Lunacy

From Windows-only WPF to four platforms.

A port the team believes would have taken at least 3x longer on another framework.

Sergey Mikolaitis, Team Lead, Lunacy at Icons8

The Lunacy design application on macOS, showing a vector canvas, a layers panel and an inspector
“As our tools use WPF, Avalonia was an easy choice for us.”

The dotTrace and dotMemory team

Across all 6 supported platforms.

5.7M

Projects built on Avalonia

Chaos Enscape renders architecture in real time.

Chaos Enscape on macOS: a rendered living room interior beside a material editor

Native to the Mac

Mac users can tell within about four seconds.

A real menu bar, at the top of the screen.

Not a menu strip drawn inside your window. NativeMenu builds the macOS application menu where macOS puts it and generates the Quit item for you.

  • Command, not Control, for the standard gestures
  • The Dock icon gets a right-click menu
  • VoiceOver reads your app through NSAccessibility
<NativeMenu.Menu>
  <NativeMenu>
    <NativeMenuItem Header="File">
      <NativeMenu>
        <NativeMenuItem Header="Open…" Gesture="Cmd+O"
                        Command="{Binding OpenCommand}" />
      </NativeMenu>
    </NativeMenuItem>
  </NativeMenu>
</NativeMenu.Menu>

Open your files, answer your links.

Register URL schemes and document types in Info.plist and macOS routes them to your app, so a contoso:// link or a double-clicked document lands where you expect.

  • CFBundleDisplayName is what Finder and the Dock show
  • NativeControlHost embeds NSView subclasses
<key>CFBundleURLTypes</key>
<array><dict>
  <key>CFBundleURLSchemes</key>
  <array><string>contoso</string></array>
</dict></array>

Compile on Windows. Run on the Mac.

Avalonia’s macOS backend has no Xamarin.Mac dependency. Your existing Windows or Linux build agents can produce the Mac build, which keeps macOS out of the “we’d need to buy hardware first” column.

  • Our own Objective-C++ backend
  • The plain net10.0 target compiles from anywhere
  • Signing and notarisation travel too
A beige desktop PC with a CRT monitor and a keyboard

Notarised before Gatekeeper ever sees it.

Avalonia produces a standard .app bundle, so the distribution path is the one Apple documents. Parcel is the part that runs it for you.

  • Signed and notarised inside the packaging run
  • Universal binaries, the Mac App Store and NativeAOT
  • Parcel Plus adds signing, notarisation and the CLI
Parcel’s macOS signing settings: a keychain identity and the Developer ID that signs Helio

How it feels

Entirely at home on the Mac. Still one codebase.

Avalonia draws every pixel inside the window, so what a Mac user sees is up to you, not to a control library that was designed somewhere else. The window chrome and the appearance come from macOS; everything inside it comes from your styles, and the same styles are already producing the Windows and Linux builds.

The same window in the dark appearance.

Light or dark, from System Settings.

Avalonia reads the appearance macOS is set to and your theme resources answer it. Both frames are the same controls with a resource swap, which is also how a brand theme works.

The top-left corner of a Mac window: traffic lights, the sidebar toggle and the first sidebar sections.

The chrome is the system’s

Traffic lights, the title bar, the menu bar at the top of the screen and full-screen behaviour are supplied by macOS. Avalonia uses them rather than redrawing them, so the window is a Mac window before you’ve styled a thing.

An inspector panel beside an open image: a cover image, title and project fields, tag chips, a note and a details ledger.

The controls look however you want

These text fields, pop-up menus, tag chips and the details ledger are Avalonia controls, restyled to sit beside the system’s own. There’s no macOS-look theme to install: a restyle is a resource swap, and it travels to every other platform.

Styles, control themes and resource dictionaries are how you get from the built-in Fluent look to this one.

Read the styling guide

Every target

Add the Mac without forking the team.

None of the tooling above (the Objective-C++ backend, the notarisation pipeline) is a macOS-only investment. The same project produces every other target Avalonia supports.

Avalonia for Windows

Direct Win32 calls, x64 and ARM64.

Avalonia for Linux

X11, Wayland, and bare framebuffer.

Avalonia for mobile

iOS and Android, from the same views.

Avalonia for WebAssembly

Static files, no server component.

Build the Mac target without buying a Mac.

Install the templates, add the macOS target, and build it from the machine you’re sitting at. The framework is MIT licensed, and the Mac build is one target of six.