Lemon.Hosting.AvaloniauiDesktop
1.1.1
dotnet add package Lemon.Hosting.AvaloniauiDesktop --version 1.1.1
NuGet\Install-Package Lemon.Hosting.AvaloniauiDesktop -Version 1.1.1
<PackageReference Include="Lemon.Hosting.AvaloniauiDesktop" Version="1.1.1" />
<PackageVersion Include="Lemon.Hosting.AvaloniauiDesktop" Version="1.1.1" />
<PackageReference Include="Lemon.Hosting.AvaloniauiDesktop" />
paket add Lemon.Hosting.AvaloniauiDesktop --version 1.1.1
#r "nuget: Lemon.Hosting.AvaloniauiDesktop, 1.1.1"
#:package Lemon.Hosting.AvaloniauiDesktop@1.1.1
#addin nuget:?package=Lemon.Hosting.AvaloniauiDesktop&version=1.1.1
#tool nuget:?package=Lemon.Hosting.AvaloniauiDesktop&version=1.1.1
🚀 Hosting.AvaloniauiDesktop
<p align="center"> <a href="https://www.nuget.org/packages/Lemon.Hosting.AvaloniauiDesktop/"> <img src="https://img.shields.io/nuget/v/Lemon.Hosting.AvaloniauiDesktop.svg?label=NuGet" alt="NuGet Package Version"/> </a>
<img src="https://img.shields.io/badge/AOT-Supported-brightgreen.svg" alt="AOT Supported"/> <img src="https://img.shields.io/badge/Linux-Supported-yellow.svg" alt="Linux Supported"/> <img src="https://img.shields.io/badge/macOS-Supported-ff69b4.svg" alt="macOS Supported"/> <img src="https://img.shields.io/badge/Windows-Supported-0078d7.svg" alt="Windows Supported"/> </p>
Introduction
.NET Generic Host support for Avaloniaui desktop app. Support native aot!
- Examples:
internal sealed class Program
{
[STAThread]
public static void Main(string[] args)
{
var hostBuilder = Host.CreateApplicationBuilder();
// config IConfiguration
hostBuilder.Configuration
.AddCommandLine(args)
.AddEnvironmentVariables()
.AddInMemoryCollection();
// config ILogger
hostBuilder.Services.AddLogging(builder => builder.AddConsole());
// add some services
hostBuilder.Services.AddSingleton<ISomeService, SomeService>();
RunApp(hostBuilder);
}
private static void RunApp(HostApplicationBuilder hostBuilder)
{
hostBuilder.Services.AddAppBuilder(BuildAvaloniaApp);
var appHost = hostBuilder.Build();
appHost.RunAvaloniaAppAsync();
}
public static AppBuilder BuildAvaloniaApp()
{
return AppBuilder.Configure<App>()
.UsePlatformDetect()
.WithInterFont()
.LogToTrace()
.UseReactiveUI();
}
}
References: Nito.Host.Wpf
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- Avalonia (>= 11.0.11)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
-
net7.0
- Avalonia (>= 11.0.11)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
-
net8.0
- Avalonia (>= 11.0.11)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
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.1.1 | 1,291 | 11/3/2025 |
| 1.1.0 | 153 | 10/25/2025 |
| 1.0.3-beta | 1,045 | 6/16/2025 |
| 1.0.2-beta | 197 | 6/6/2025 |
| 1.0.1-beta | 482 | 12/14/2024 |
| 1.0.0 | 1,396 | 7/31/2024 |