Skip to content

WinForms Configuration ​

Set properties in MyGame.winforms.csproj, which references 2dog.engine. The generated host targets net10.0-windows with UseWindowsForms=true. Global settings control the game directory, resource import, analyzers, and native variant. Desktop publishing covers the pack, self-contained, single-file and ReadyToRun properties.

bash
dotnet publish MyGame.winforms -c Release -r win-x64

WinForms does not support trimming or Native AOT; ReadyToRun works. Keep the generated ApplicationHighDpiMode=SystemAware and app manifest so WinForms and Godot use the same DPI mode.

See the WinForms host guide for window embedding and UI behavior.

2dog is Free and Libre Open Source under the MIT License.
2dog is not affiliated with or endorsed by the Godot Foundation.
Godot is licensed under the MIT License; the Godot logo is by Andrea Calabró under CC BY 4.0. @icons made by Voxy under the MIT License.
Continuous Integration compute graciously supported by Blacksmith.