2dog.blazor 4.7.2.84

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

2dog.blazor

Embed a Godot viewport in a Blazor WebAssembly page with 2dog.

GodotView owns a <canvas> and starts the Godot engine inside the .NET runtime Blazor already booted: 2dog links the engine (libgodot.a) statically into the client's dotnet.native.wasm, so Godot and your Razor components share one runtime and one thread. Razor code calls Godot objects directly - there is no JavaScript interop layer between them.

<GodotView Project="MyGame" PluginsInitializer="TwoDogWebBoot.PluginsInitializer()"
           Started="OnStarted" style="width: 100%; height: 100vh;">
    <div class="hud">@_fps fps</div>
</GodotView>

@code {
    void OnStarted(twodog.Engine engine) => engine.Tree.Root.PrintTree();
}

The view needs the 2dog.engine and 2dog.browser-wasm packages in the Blazor WebAssembly project; 2dog's Blazor host template wires everything up (dnx 2dog add --blazor). See https://2dog.dev/hosts/blazor.

GodotView owns its Engine, and the engine owns the Godot instance. Quitting uses Engine.RequestQuit(); browser teardown is asynchronous, with Completion and Exited signaling its end. A restart creates a new Engine only after completion.

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
4.7.2.84 36 9/14/2026
4.7.2.83 103 9/6/2026
4.7.2.82 98 9/4/2026
4.7.2.81 95 9/3/2026
4.7.2.80 107 9/3/2026
4.7.2.78 101 8/30/2026
4.7.2.77 106 8/27/2026