2dog.browser-wasm.release
4.8.0.225
dotnet add package 2dog.browser-wasm.release --version 4.8.0.225
NuGet\Install-Package 2dog.browser-wasm.release -Version 4.8.0.225
<PackageReference Include="2dog.browser-wasm.release" Version="4.8.0.225" />
<PackageVersion Include="2dog.browser-wasm.release" Version="4.8.0.225" />
<PackageReference Include="2dog.browser-wasm.release" />
paket add 2dog.browser-wasm.release --version 4.8.0.225
#r "nuget: 2dog.browser-wasm.release, 4.8.0.225"
#:package 2dog.browser-wasm.release@4.8.0.225
#addin nuget:?package=2dog.browser-wasm.release&version=4.8.0.225
#tool nuget:?package=2dog.browser-wasm.release&version=4.8.0.225
2dog.browser-wasm
Browser (WebAssembly) support for 2dog: statically links the
Godot engine into your .NET browser-wasm publish and ships the Godot web boot
shell. Your C# code hosts Godot in the browser – the same inversion 2dog does on
desktop.
How it works
The .NET browser-wasm runtime is the Emscripten main module. During
dotnet publish -r browser-wasm, the wasm-tools workload relinks
dotnet.native.wasm with Godot's static archive (libgodot.a) and JS glue from
this package. Game content is exported to a .pck on your build machine (via
the desktop editor packages 2dog already depends on) and served next to the app
bundle.
Requirements
- .NET SDK 10.0+ with the
wasm-toolsworkload (dotnet workload install wasm-tools) - A browser host targeting
net10.0for Godot 4.7, ornet10.0ornet11.0for Godot 4.8. On .NET 11, useMicrosoft.NET.Sdk.WebAssemblyfor a standalone host orMicrosoft.NET.Sdk.BlazorWebAssemblyfor a Blazor client. - Set
OutputType=Exe,RuntimeIdentifier=browser-wasm, andGodotProjectDirin the host project, and reference2dogand2dog.browser-wasm. - The Godot project needs a
Webexport preset, a solution file, and a2dog.godotsharpreference andAllowUnsafeBlocksin its csproj - A
wwwroot/index.htmlboot page (create a project withdnx 2dog new MyGame --webfor a working setup out of the box) - Or a Blazor WebAssembly project: the package detects the Blazor SDK and
leaves layout and boot to Blazor;
2dog.blazor'sGodotViewstarts the engine (dnx 2dog new MyGame --blazor)
Threaded hosts use 2dog.browser-wasm.threads with
<WasmEnableThreads>true</WasmEnableThreads>. Keep the .double suffix on
double-precision projects. The templates select the package during restore.
Usage
dotnet publish
(The 2dog web host template defaults the configuration to Release; pass
-c Debug for an unoptimized build.)
Serve the generated AppBundle/ directory with any static file server. The
single-threaded engine build requires no COOP/COEP headers.
Configuration and limitations
See the Browser Host documentation for the full property reference, loading-performance guidance, deployment behavior, and current browser limitations.
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- 2dog.browser-wasm.release.net10 (= 4.8.0.225)
-
net11.0
- 2dog.browser-wasm.release.net11 (= 4.8.0.225)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on 2dog.browser-wasm.release:
| Package | Downloads |
|---|---|
|
2dog.browser-wasm
Browser (wasm) meta package for twodog. Statically links the Godot engine into your .NET browser-wasm publish and ships the Godot web boot shell. Reference this package alongside twodog (2dog) in a net10.0+ browser-wasm host project. Requires the wasm-tools workload. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.8.0.225 | 0 | 11/30/2026 |
| 4.8.0.224 | 49 | 11/29/2026 |
| 4.8.0.222 | 58 | 11/28/2026 |
| 4.8.0.211 | 147 | 11/21/2026 |
| 4.8.0.202 | 155 | 11/18/2026 |
| 4.8.0.195 | 156 | 11/14/2026 |
| 4.8.0.160 | 159 | 11/10/2026 |
| 4.7.2.225 | 0 | 11/30/2026 |
| 4.7.2.224 | 55 | 11/28/2026 |
| 4.7.2.203 | 258 | 11/18/2026 |
| 4.7.2.197 | 391 | 11/14/2026 |
| 4.7.2.162 | 403 | 11/10/2026 |
| 4.7.2.158 | 155 | 11/10/2026 |
| 4.7.2.62 | 352 | 10/31/2026 |
| 4.7.2.60 | 165 | 10/31/2026 |
| 4.7.2.59 | 169 | 10/30/2026 |
| 4.7.2.56 | 180 | 10/29/2026 |
| 4.7.2.55 | 177 | 10/28/2026 |
| 4.7.2.52 | 409 | 10/24/2026 |
| 4.7.2.49 | 179 | 10/23/2026 |