Skip to content

MAUI Configuration ​

Set build properties in MyGame.maui.csproj; package versions come from the root Directory.Build.props. The setup pins the .NET 10 SDK in the host's global.json and in a new root global.json. It does not change an existing root global.json. To use the host's pin, run commands from MyGame.maui/.

Platform Properties ​

PropertyDefaultPurpose
TargetFrameworksnet10.0-android, plus net10.0-windows10.0.19041.0 on Windows and net10.0-ios on a MacSelect one with -f; without -f, dotnet run asks you to choose
GodotProjectDir..Game directory for import and pack export
RuntimeIdentifierwin-x64 on Windows, android-arm64 on Android, ios-arm64 on iOSNative architecture; Android also supports android-x64, iOS iossimulator-arm64
TwoDogVariantdebug in Debug, release otherwiseNative engine variant; select it with the Debug or Release configuration
WindowsPackageTypeNoneUnpackaged Windows app
WindowsAppSDKSelfContainedtrue on WindowsBundle the Windows App SDK runtime
PublishSelfContainedtrue on WindowsBundle the .NET runtime
TwoDogAndroidGameAssemblyGame assembly nameAssembly extracted before engine startup
TwoDogIosGameAssemblyGame assembly nameAssembly kept whole by the trimmer on iOS
AndroidPackageFormatsapkUse aab for store distribution

Windows builds are unpackaged and self-contained. Android uses the Android host's export, signing and trimming settings, and iOS uses the iOS host's settings. Both use Mono AOT in Release. The MAUI host does not support Native AOT.

View Properties ​

Set startup properties before you add GodotView to a page:

PropertyDefaultPurpose
ProjectRequiredGame assembly name
ProjectPathnullWindows project directory; published games use their pack
ArgumentsEmptyGodot startup arguments
PresentationModeAutoWindows: prefer GPU sharing, with CPU fallback; Gpu requires sharing, Cpu forces readback
ActivePresentationModenull before startupRead-only active GPU or CPU mode

Windows GPU mode defaults to the Vulkan mobile renderer. Arguments can override it. In Auto mode, the Compatibility renderer uses CPU presentation. CPU readback can reduce frame rate at larger resolutions. Android always uses Godot's native GPU surface.

Publish ​

bash
dotnet publish MyGame.maui -f net10.0-windows10.0.19041.0 -c Release
dotnet publish MyGame.maui -f net10.0-android -c Release -r android-arm64
dotnet publish MyGame.maui -f net10.0-ios -c Release -r ios-arm64 -p:CodesignKey="Apple Development"

See the MAUI host guide for setup, lifecycle and Dispatch.

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.