GuiDispatcher.Sharp.Consolonia 1.1.1

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

GuiDispatcher.Sharp.Consolonia

Consolonia 11 implementation of GuiDispatcher.Sharp for .NET 10.

Use this adapter in Consolonia applications that need to expose the terminal UI thread through the platform-neutral IGuiDispatcher and IGuiTimer contracts.

Install

<PackageReference Include="GuiDispatcher.Sharp.Consolonia" Version="1.1.*" />

This package pulls in:

  • GuiDispatcher.Sharp 1.1.1 or later, below 2.0;
  • Consolonia.Core 11.3.12.3 or later, below 12.0.

The upper Consolonia bound is intentional. Consolonia 11 is pinned to Avalonia 11, while GuiDispatcher.Sharp.Avalonia 1.1 targets Avalonia 12.

Usage

using GuiDispatcher.Sharp.Consolonia;
using GuiDispatcher.Sharp.Contracts;

services.AddSingleton<IGuiDispatcher, ConsoloniaGuiDispatcher>();

The dispatcher uses the same Avalonia.Threading.Dispatcher.UIThread that Consolonia runs with its ManagedDispatcherImpl.

await dispatcher.InvokeAsync(() =>
{
    viewModel.Apply(result);
});

using var timer = dispatcher.CreateTimer(TimeSpan.FromSeconds(1));
timer.Tick += (_, _) => viewModel.Refresh();
timer.Start();

Do not register ImmediateGuiDispatcher in a running Consolonia application: it executes work on the caller instead of marshalling it to the terminal UI thread. It remains useful in tests that do not start a Consolonia lifetime.

Requirements

  • .NET 10 (net10.0)
  • Consolonia 11.3.12.3+

NuGet publishing

Publishing uses NuGet Trusted Publishing from GitHub Actions, without a stored API key. Configure this policy on nuget.org before pushing the first release tag:

Field Value
Repository owner buchmiet
Repository GuiDispatcher.Sharp.Consolonia
Workflow file publish-nuget.yml
Environment production

Releasing

Releases are cut by pushing a vX.Y.Z tag. Before tagging:

  1. Bump <Version> in GuiDispatcher.Sharp.Consolonia.csproj.
  2. Move the relevant [Unreleased] entries in CHANGELOG.md into a dated release section.
  3. Commit both changes.
  4. Tag and push: git tag vX.Y.Z && git push origin vX.Y.Z.

For a coordinated release of the complete package family, follow the family release guide.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
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.1.1 92 7/24/2026