BlazorAppKit 0.1.1-prerelease
dotnet add package BlazorAppKit --version 0.1.1-prerelease
NuGet\Install-Package BlazorAppKit -Version 0.1.1-prerelease
<PackageReference Include="BlazorAppKit" Version="0.1.1-prerelease" />
<PackageVersion Include="BlazorAppKit" Version="0.1.1-prerelease" />
<PackageReference Include="BlazorAppKit" />
paket add BlazorAppKit --version 0.1.1-prerelease
#r "nuget: BlazorAppKit, 0.1.1-prerelease"
#:package BlazorAppKit@0.1.1-prerelease
#addin nuget:?package=BlazorAppKit&version=0.1.1-prerelease&prerelease
#tool nuget:?package=BlazorAppKit&version=0.1.1-prerelease&prerelease
BlazorAppKit
Project to build macOS applications using Blazor with a special AppKit-based Renderer. Inspired by the Flutter+Blazor demo (By Steve Sanderson demonstrated in NDC Oslo 2019) and Blazor-Binding projects.
Install
Add the package to a .NET 10 macOS project:
dotnet add package BlazorAppKit
Supports only .NET 10 and above.
Project template
Install the project template package and create a native macOS starter app:
dotnet new install BlazorAppKit.Templates
dotnet new blazorappkit -n MyApp
cd MyApp
dotnet run
Requires macOS workload to be installed. Run dotnet workload install macos to install it.
The template creates a minimal counter app targeting .NET 10 and macOS 15 or later. For different library version, pass the version explicitly with --blazorappkit-version.
Demo
The below code is the Blazor markup for the above macOS app.
@using BlazorAppKit.Components
@using AppKit
<NSScrollView HasVerticalScroller="true">
<NSStackView Orientation="@NSUserInterfaceLayoutOrientation.Vertical" Spacing="12">
<NSTextField StringValue="BlazorAppKit Counter" IsEditable="false" IsBordered="false" DrawsBackground="false" />
<NSStackView Orientation="@NSUserInterfaceLayoutOrientation.Horizontal" Spacing="8">
<NSTextField StringValue="@($"Current count: {currentCount}")" IsEditable="false" IsBordered="false" DrawsBackground="false" />
<NSButton Title="Increment" Activated="Increment" />
</NSStackView>
<NSStackView Orientation="@NSUserInterfaceLayoutOrientation.Horizontal" Spacing="8">
<NSTextField StringValue="Name:" IsEditable="false" IsBordered="false" DrawsBackground="false" />
<NSTextField @bind-StringValue="name" IsEditable="true" IsBordered="true" />
</NSStackView>
<NSTextField StringValue="@name" IsEditable="false" IsBordered="false" DrawsBackground="false" />
</NSStackView>
</NSScrollView>
@code {
private int currentCount;
private string? name;
private void Increment()
{
currentCount++;
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-macos26.0 is compatible. |
-
net10.0-macos26.0
- Microsoft.AspNetCore.Components (>= 10.0.10)
- Microsoft.Extensions.DependencyInjection (>= 10.0.10)
- Microsoft.Extensions.Logging (>= 10.0.10)
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 |
|---|---|---|
| 0.1.1-prerelease | 85 | 8/8/2026 |
| 0.1.0-prerelease.3 | 76 | 8/8/2026 |