BlazorAppKit 0.1.1-prerelease

This is a prerelease version of BlazorAppKit.
dotnet add package BlazorAppKit --version 0.1.1-prerelease
                    
NuGet\Install-Package BlazorAppKit -Version 0.1.1-prerelease
                    
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="BlazorAppKit" Version="0.1.1-prerelease" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BlazorAppKit" Version="0.1.1-prerelease" />
                    
Directory.Packages.props
<PackageReference Include="BlazorAppKit" />
                    
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 BlazorAppKit --version 0.1.1-prerelease
                    
#r "nuget: BlazorAppKit, 0.1.1-prerelease"
                    
#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 BlazorAppKit@0.1.1-prerelease
                    
#: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=BlazorAppKit&version=0.1.1-prerelease&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=BlazorAppKit&version=0.1.1-prerelease&prerelease
                    
Install as a Cake Tool

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

Running BlazorAppKit.Sample project

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 Compatible and additional computed target framework versions.
.NET net10.0-macos26.0 is compatible. 
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
0.1.1-prerelease 85 8/8/2026
0.1.0-prerelease.3 76 8/8/2026