Avae.macOS.Essentials 1.0.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package Avae.macOS.Essentials --version 1.0.5
                    
NuGet\Install-Package Avae.macOS.Essentials -Version 1.0.5
                    
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="Avae.macOS.Essentials" Version="1.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Avae.macOS.Essentials" Version="1.0.5" />
                    
Directory.Packages.props
<PackageReference Include="Avae.macOS.Essentials" />
                    
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 Avae.macOS.Essentials --version 1.0.5
                    
#r "nuget: Avae.macOS.Essentials, 1.0.5"
                    
#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 Avae.macOS.Essentials@1.0.5
                    
#: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=Avae.macOS.Essentials&version=1.0.5
                    
Install as a Cake Addin
#tool nuget:?package=Avae.macOS.Essentials&version=1.0.5
                    
Install as a Cake Tool

Avae.macOS.Essentials

A port of Microsoft.Maui.Essentials tailored for Avalonia.macOS, bringing essential cross-platform APIs to your Avalonia-based macOS applications.

Features

Cross-Platform Essentials: Leverage APIs from Microsoft.Maui.Essentials adapted for macOS environments.

Lightweight Configuration: Minimal setup required for integration into your Avalonia.macOS project.

MIT Licensed: Freely use, modify, and distribute under the permissive MIT License.

Getting Started

Follow these steps to integrate Avae.macOS.Essentials into your Avalonia.macOS project.

Prerequisites

An Avalonia.macOS project set up with .NET.

Installation

  1. Add Microsoft.Maui.Essentials to Your Shared Project

In your shared project�s .csproj file, include the Microsoft.Maui.Essentials package. Use one of the following methods

<UseMauiEssentials>true</UseMauiEssentials>

OR

<PackageReference Include="Microsoft.Maui.Essentials">
    <PrivateAssets>all</PrivateAssets>
</PackageReference>

Configuration

  1. Add the following to your info.plist

NSCameraUsageDescription

NSMicrophoneUsageDescription

CFDisplayBundleName

NSLocationWhenInUseUsageDescription

NSLocationAlwaysUsageDescription

  1. Initialize
 using Microsoft.Maui.ApplicationModel;

 public static AppBuilder BuildAvaloniaApp()
        => AppBuilder.Configure<App>()
            .UseMauiEssentials()
            .UsePlatformDetect()
            .WithInterFont()
            .LogToTrace();

Usage

Once installed, you can use Microsoft.Maui.Essentials APIs within your Avalonia.macOS application. For example, access Geolocation.

Example: Accessing Geolocation

using Microsoft.Maui.Devices.Sensors;

var location = await Geolocation.GetLocationAsync();

Built With

This package builds upon the excellent work of:

Microsoft.Maui.Essentials

AvaloniaUI

Avalonia.Essentials

Note

Camera doesn't works in Debug mode

License

Avae.macOS.Essentials is licensed under the MIT License.

Contributing

Contributions are welcome! Please submit issues or pull requests to the GitHub repository. Ensure your code follows the project�s coding standards.

Acknowledgments

Thanks to the Avalonia team for their robust UI framework.

Gratitude to the MAUI team for providing cross-platform essentials.

Product Compatible and additional computed target framework versions.
.NET net8.0-macos15.0 is compatible.  net9.0-macos was computed.  net10.0-macos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.8 252 8/27/2025
1.0.7 227 8/27/2025
1.0.6 127 8/22/2025
1.0.5 130 8/22/2025
1.0.4 144 8/22/2025
1.0.3 131 8/22/2025
1.0.2 181 8/20/2025
1.0.1 150 8/17/2025
1.0.0 192 8/13/2025