2dog.gdextension.browser-wasm.debug 4.7.1.22

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package 2dog.gdextension.browser-wasm.debug --version 4.7.1.22
                    
NuGet\Install-Package 2dog.gdextension.browser-wasm.debug -Version 4.7.1.22
                    
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.gdextension.browser-wasm.debug" Version="4.7.1.22" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="2dog.gdextension.browser-wasm.debug" Version="4.7.1.22" />
                    
Directory.Packages.props
<PackageReference Include="2dog.gdextension.browser-wasm.debug" />
                    
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.gdextension.browser-wasm.debug --version 4.7.1.22
                    
#r "nuget: 2dog.gdextension.browser-wasm.debug, 4.7.1.22"
                    
#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.gdextension.browser-wasm.debug@4.7.1.22
                    
#: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.gdextension.browser-wasm.debug&version=4.7.1.22
                    
Install as a Cake Addin
#tool nuget:?package=2dog.gdextension.browser-wasm.debug&version=4.7.1.22
                    
Install as a Cake Tool

2dog.gdextension.browser-wasm

Browser (WebAssembly) support for the 2dog GDExtension stack: statically links the non-mono 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, without the mono module.

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. The 2dog.gdextension host registers itself through the engine's embedded-extension init callback – no GodotPlugins, no side modules, no dynamic linking.

Requirements

  • .NET SDK 10.0+ with the wasm-tools workload (dotnet workload install wasm-tools)
  • A host project: net10.0, OutputType=Exe, RuntimeIdentifier=browser-wasm, PackageReference to 2dog.gdextension and 2dog.gdextension.browser-wasm
  • A wwwroot/index.html boot page

Usage

dotnet publish

Serve the generated AppBundle/ directory with any static file server. The single-threaded engine build requires no COOP/COEP headers.

Properties

Property Default Description
TwoDogWebVariant release debug selects the engine-assertions build (requires referencing 2dog.gdextension.browser-wasm.debug)

Known limitations

  • Single-threaded (System.Threading use will fail); a threaded variant may come later
  • No external GDExtension side modules (the .NET runtime owns the main module); the host itself is the embedded extension
  • Single engine lifetime per page (no restart)
  • Every publish relinks the wasm (minutes); iterate gameplay on desktop, publish web to verify
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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