2dog.browser-wasm 4.7.1.38

There is a newer version of this package available.
See the version list below for details.
dotnet add package 2dog.browser-wasm --version 4.7.1.38
                    
NuGet\Install-Package 2dog.browser-wasm -Version 4.7.1.38
                    
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.browser-wasm" Version="4.7.1.38" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="2dog.browser-wasm" Version="4.7.1.38" />
                    
Directory.Packages.props
<PackageReference Include="2dog.browser-wasm" />
                    
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.browser-wasm --version 4.7.1.38
                    
#r "nuget: 2dog.browser-wasm, 4.7.1.38"
                    
#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.browser-wasm@4.7.1.38
                    
#: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.browser-wasm&version=4.7.1.38
                    
Install as a Cake Addin
#tool nuget:?package=2dog.browser-wasm&version=4.7.1.38
                    
Install as a Cake Tool

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-tools workload (dotnet workload install wasm-tools)
  • A host project: net10.0, OutputType=Exe, RuntimeIdentifier=browser-wasm, PackageReference to 2dog and 2dog.browser-wasm, <GodotProjectDir> set
  • The Godot project needs a Web export preset, a solution file, and LIBGODOT_ENABLED + AllowUnsafeBlocks in its csproj
  • A wwwroot/index.html boot page (create a project with dnx 2dog new MyGame --web for a working setup out of the box)

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.

There are no supported framework assets in this 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.1.39 11 8/16/2026
4.7.1.38 87 8/14/2026
4.7.1.37 105 8/11/2026
4.7.1.36 85 8/11/2026