2dog 4.7.1.49

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global 2dog --version 4.7.1.49
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local 2dog --version 4.7.1.49
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=2dog&version=4.7.1.49
                    
nuke :add-package 2dog --version 4.7.1.49
                    

2dog

Command-line tool and project templates for 2dog – run Godot as a library from your own .NET entry point. The engine library itself is the 2dog.engine package.

This one package is both a dotnet tool and a dotnet new template package.

New project

dotnet new install 2dog
dotnet new 2dog -n MyGame
cd MyGame

Convert an existing Godot project

One-shot (no install, .NET 10+):

dnx 2dog convert path/to/your/godot/project

Or install the 2dog command globally:

dotnet tool install -g 2dog
2dog convert path/to/your/godot/project

2dog convert

Converts an existing Godot project to 2dog in place – no files are ever moved, renamed or deleted. The Godot project directory becomes the solution root, and host projects are scaffolded as nested subfolders that the Godot editor ignores (each carries a .gdignore):

MyGame/                      <- your existing Godot project (unchanged)
  project.godot
  MyGame.csproj              <- created or minimally patched
  MyGame.slnx                <- created, or an existing .sln is migrated
  TwoDogWebBoot.cs           <- added (web bootstrap, guarded by LIBGODOT_ENABLED)
  MyGame.2dog/   (.gdignore) <- desktop host (your Main entry point)
  MyGame.web/    (.gdignore) <- browser (WebAssembly) host
  MyGame.tests/  (.gdignore) <- xUnit test project

dotnet new 2dog produces the same layout from scratch.

Options:

Option Effect
--name <BaseName> Override the derived project base name
--no-web Skip the browser (wasm) host
--no-tests Skip the xUnit test project
--dry-run Print planned actions without changing anything
--force Overwrite files that already exist (never deletes/moves)
--no-restore Skip the final dotnet restore
--verbose Extra output

Using the library directly

This package cannot be referenced from a project (it is a tool package); reference the engine instead:

dotnet add package 2dog.engine

This package has no dependencies.

Version Downloads Last Updated
4.7.1.51 0 7/22/2026
4.7.1.50 37 7/22/2026
4.7.1.49 88 7/19/2026
4.7.1.48 52 7/19/2026
4.7.1.46 74 7/17/2026
4.7.1.45 116 7/15/2026
4.7.1.44 95 7/15/2026
4.7.1.43 87 7/15/2026
4.7.0.41 130 7/14/2026
4.7.0.40 107 7/14/2026
4.7.0.39 113 7/14/2026
4.7.0.38 128 7/13/2026
4.7.0.37 135 7/13/2026
4.7.0.36 133 7/13/2026
4.7.0.35 121 7/13/2026
4.7.0.34 128 7/13/2026
4.7.0.32 143 7/12/2026
4.7.0.31 120 7/12/2026
4.7.0.30 118 7/12/2026
4.7.0.29 135 7/12/2026
Loading failed