Back to directory

Miscellaneous · Gaming

MonoGame

A free C# framework for shipping games across major platforms

MonoGame is an open source C# and .NET framework for building 2D and 3D games across desktop, mobile, and console platforms. Maintained by the MonoGame Foundation and community contributors, it uses the Microsoft Public License and has no royalties, subscriptions, runtime fees, or hosted availability. Self-hosting means installing the .NET SDK, templates or NuGet packages, MGCB Editor, and managing upgrades, backups, and build artifacts locally.

Key facts

License
Microsoft Public License (Ms-PL)
Main language
C#, C, C++, HLSL
Maintainer
MonoGame Foundation and community contributors
First released
2009
Latest release
v3.8.6, October 7, 2026
GitHub stars
14,543, October 2026
Hosted option
None

What MonoGame is

MonoGame is a free, open source C# and .NET framework for building 2D and 3D games across desktop, mobile, and console platforms. Descended from Microsoft’s discontinued XNA Framework, it supplies game-loop, graphics, audio, input, storage, controller, project-template, and content-pipeline tools, while leaving higher-level editor features to developers. The project began in 2009, and the MonoGame Foundation owns and develops it with community contributors. Its principal code uses the Microsoft Public License, with some separately licensed portions, and there is no subscription, royalty, licensing, or runtime fee. Adoption is represented by games such as Streets of Rage 4, Carrion, Celeste, and Stardew Valley, while the repository recorded 14,543 stars on October 22, 2026. The Foundation says community donations support hosting, hardware, and potentially dedicated development.

How it works

MonoGame is a code-first C# and .NET framework for building 2D and 3D games across Windows, macOS, Linux, Android, iOS, iPadOS, PlayStation, Xbox, and Nintendo Switch platforms, with console access requiring authorization. A typical workflow starts by installing the .NET SDK, MonoGame templates or NuGet packages, and the MGCB Editor, then creating a project in an editor or from the command line. Developers write game-loop, rendering, audio, input, storage, and platform code, import images, fonts, audio, models, and effects through MGCB, and build target-specific packages with MSBuild or command-line tools. Graphics APIs cover sprites, textures, models, shaders, render targets, matrices, vertex data, and controllers. MonoGame offers no required scene editor, backend service, subscription, royalty, licensing cost, or runtime fee.

Architecture and recent releases

MonoGame is an open source, code-first framework centered on C# and .NET, with supporting C, C++, and HLSL code, and it remains a practical successor to XNA for teams that prefer direct control over game architecture. Its framework APIs cover game loops, 2D and 3D graphics, audio, input, storage, and platform behavior, while MGCB, MGFXC, project templates, NuGet packages, MSBuild, and the .NET SDK support repeatable builds. Deployments target Windows, macOS, Linux, Android, iOS, iPadOS, PlayStation 4, PlayStation 5, Xbox, and Nintendo Switch, with console authorization required. Integration is local rather than hosted, and networking, accounts, analytics, and backend services remain separate responsibilities. Version 3.8.6 arrived October 7, 2026, adding native GPU handles, Switch 2 support, native OpenGL, DX12 and Vulkan fixes, security dependency removal, Docker Linux builds, and .NET 10 Android compatibility.

License and pricing

MonoGame presents an unusually clear cost structure: the framework is free to use, has no hosted edition, and charges no subscription, royalty, licensing cost, or runtime fee. Its principal code uses the Microsoft Public License, granting royalty-free rights to reproduce, modify, and distribute covered software, while requiring retained notices and specific license treatment for source and compiled distributions. Some portions and third-party libraries use separate licenses, so commercial teams must review those terms rather than treat the entire project as uniform. There is no paid and free product split because MonoGame offers one free local framework instead of hosted tiers. Teams still budget for authorized console access, platform-holder programs, storefront charges, infrastructure, assets, and separately added online services.

Limitations and how it compares

MonoGame is a compelling alternative to Unity, Godot, and GameMaker when a team wants a free, open source C# framework rather than an integrated editor. Its Microsoft Public License has no subscription, royalty, licensing, or runtime fee, while desktop, mobile, and authorized console targets support broad distribution. The tradeoff is substantial: MonoGame supplies rendering, input, audio, storage, content processing, and build tools, but not scenes, inspectors, visual level design, networking, accounts, analytics, or backend services. Unity offers a fuller proprietary production environment, Godot provides an open source editor-led workflow, and GameMaker focuses on accessible 2D development. MonoGame therefore suits experienced programmers who value code ownership, platform control, and .NET tooling over rapid visual authoring.

Main features

  • Cross-platform targets. Builds games for Windows, macOS, Linux, Android, iOS, iPadOS, PlayStation, Xbox, and Nintendo Switch platforms.
  • 2D and 3D graphics. Provides sprites, textures, models, effects, render targets, shaders, matrices, and graphics-device APIs for game rendering.
  • Content pipeline. MGCB imports and processes images, fonts, audio, models, effects, and other assets into runtime content.
  • Input and controllers. MonoGame supports keyboard, mouse, touch, accelerometers, and game controllers across supported desktop and mobile platforms.
  • .NET tooling. Works with C# editors, project templates, NuGet packages, MSBuild, command-line builds, and the .NET SDK.

Self-hosting MonoGame

MonoGame is a local developer framework, not a hosted service, so installation means preparing a development machine or build runner. Install a supported .NET SDK, MonoGame templates or NuGet packages, and the MGCB Editor. The NuGet profile publishes DesktopGL, WindowsDX, Android, iOS, content-pipeline, and editor packages at version 3.8.6. Windows projects can use DirectX targets, while macOS and Linux commonly use DesktopGL. No database, cache, object storage, server daemon, or cloud machine is required. Pin framework and SDK versions, cache packages and content outputs in continuous integration, and archive platform-specific artifacts. Console development requires authorized platform access.

Strengths

  • The Microsoft Public License permits commercial distribution without royalties.
  • C# and .NET tooling suit teams already working in Microsoft development environments.
  • Desktop, mobile, and console targets support releases across several device categories.
  • The content pipeline supports repeatable asset processing in build workflows.

Drawbacks

  • MonoGame lacks the integrated scene editor found in Unity or Godot.
  • Teams must implement networking, accounts, analytics, and backend services separately.
  • Platform packaging and console access require additional engineering and authorization.

What teams replace with it

Teams usually evaluate MonoGame when they want to move off Unity, XNA, GameMaker.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to MonoGame

  • Godot
  • FNA
  • Stride
  • libGDX
  • Raylib

Frequently asked questions

Is MonoGame free?

Yes. MonoGame states that it has no subscription, royalty payment, licensing cost, or runtime fee. Commercial developers still pay unrelated expenses such as console programs, storefront fees, hosting, assets, and services added to a game. The Foundation is a nonprofit project funded through community donations.

What license does MonoGame use for commercial games?

The principal MonoGame code uses the Microsoft Public License. It grants royalty-free rights to reproduce, modify, and distribute covered software and derivative works, subject to attribution, notice, patent, and redistribution conditions. The repository also identifies MIT-licensed portions and separately licensed third-party libraries.

How do developers install MonoGame?

Developers install the .NET SDK, MonoGame templates or NuGet packages, and the MGCB Editor. A project can then be created in an IDE or from the command line, given a platform target, populated with processed content, and built for the selected desktop, mobile, or authorized console platform.

How does MonoGame compare with Godot?

MonoGame is a code-first framework centered on C# and .NET, with separate content tools and no required scene editor. Godot is an editor-led engine with scenes, inspectors, animation tooling, and integrated asset workflows. MonoGame gives programmers direct control over project structure, while Godot offers more visual tooling for designers and level builders.

Does MonoGame require cloud services or telemetry?

MonoGame itself is a local framework and requires no account, control plane, database, cache, object storage, or hosted runtime. Privacy depends on the game and services its developers add. A finished game can include analytics, multiplayer, payments, or other network features, but those are separate implementation choices.

Similar projects to compare

Sources

Last updated 2026-10-22.