2dog (generic .NET)
The generic .NET host is a console application that runs Godot on Windows, Linux, or macOS. Godot opens a window unless you run it headless.
It is truly the Swiss Army knife of hosts: it gives you a blank .NET canvas to build on.
It's pawesome! Robotastic!
Edit MyGame.2dog/Program.cs to add your own C# code to an existing Godot game. You can run, test, and debug the game in your IDE or with the dotnet CLI.
Use It
Run these commands from your Godot project directory:
dnx 2dog add --generic
dotnet run --project MyGame.2dogPass Godot arguments after --. For a headless run:
dotnet run --project MyGame.2dog -- --headless --quit-after 300Publishing
dotnet publish MyGame.2dog -c ReleaseThe publish folder includes the executable, .NET runtime, engine, and game pack. Copy the whole folder to the target machine. Add -r win-x64, -r linux-x64, or -r osx-arm64 to select a platform.
Release builds hide the Windows console. See Desktop Publishing for framework-dependent, single-file, Native AOT and ReadyToRun builds.
See Engine to customize the frame loop and Build Variants to select an engine build. See Generic .NET Configuration for build and publish settings.