Gondwana.Blazor.Hosting
2.4.3
dotnet add package Gondwana.Blazor.Hosting --version 2.4.3
NuGet\Install-Package Gondwana.Blazor.Hosting -Version 2.4.3
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="Gondwana.Blazor.Hosting" Version="2.4.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Gondwana.Blazor.Hosting" Version="2.4.3" />
<PackageReference Include="Gondwana.Blazor.Hosting" />
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 Gondwana.Blazor.Hosting --version 2.4.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Gondwana.Blazor.Hosting, 2.4.3"
#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 Gondwana.Blazor.Hosting@2.4.3
#: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=Gondwana.Blazor.Hosting&version=2.4.3
#tool nuget:?package=Gondwana.Blazor.Hosting&version=2.4.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Gondwana.Blazor.Hosting
Gondwana.Blazor.Hosting provides the BlazorGameHost base class, which wires the Gondwana
engine lifecycle into a Blazor WebAssembly application.
It is the Blazor equivalent of Gondwana.WinForms.Hosting and Gondwana.Avalonia.Hosting.
Features
BlazorGameHost– abstract base class handling engine init, input adapters, scene binding, and lifecycle management- Timer-driven engine loop via
PeriodicTimerfor single-threaded Blazor WASM - Works with both Blazor WebAssembly and Blazor Server
Installation
dotnet add package Gondwana.Blazor.Hosting
Usage
public class MyGameHost : BlazorGameHost
{
public MyGameHost(BlazorBitmapRenderSurfaceComponent surface) : base(surface) { }
protected override Scene CreateInitialScene() => new MyGameScene();
protected override void CreateSprites() { /* populate scene */ }
}
Then in your Blazor page's OnAfterRenderAsync:
@code {
private BlazorBitmapRenderSurfaceComponent _surface = null!;
private MyGameHost? _host;
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (!firstRender) return;
_host = new MyGameHost(_surface);
_host.Initialize();
}
}
Documentation
Source Code
https://github.com/isthimius/GondwanaArchitecture & Guides
https://github.com/isthimius/Gondwana/wikiAPI Reference (Doxygen)
https://isthimius.github.io/Gondwana/
Related Packages
Gondwana– Core engineGondwana.Hosting– Base hosting frameworkGondwana.Blazor– Blazor platform adapters
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Gondwana (>= 2.4.3)
- Gondwana.Blazor (>= 2.4.3)
- Gondwana.Hosting (>= 2.4.3)
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 |
|---|---|---|
| 2.4.3 | 122 | 6/16/2026 |