MonoGame is a .NET framework for writing games in C# for desktop, mobile, and registered console targets. It is a community re-implementation of Microsoft's discontinued XNA Framework.
Overview
MonoGame is a simple .NET game framework used to create titles for desktop PCs, phones, tablets, and consoles when you have platform authorization. Developers write game logic in C# and related .NET languages, using editors such as Visual Studio, Visual Studio Code, or JetBrains Rider.
Supported desktop targets include Windows, Linux, and macOS with OpenGL and, on Windows, DirectX paths. Mobile support covers Android and iOS or iPadOS. Console builds are available to registered developers for PlayStation, Xbox, and Nintendo Switch families. Graphics work is expanding with preview Vulkan and DirectX12 support on some platforms.
The framework ships with a content pipeline, command-line tools such as mgcb for content processing and mgfxc for effects, a GUI content editor, project templates, and samples maintained by the project team. Games including Celeste, Stardew Valley, Carrion, and Streets of Rage 4 are cited as examples built with MonoGame.
MonoGame is maintained by the MonoGame Foundation as free software with publicly available source. There are no subscription, royalty, or runtime fees for using the framework itself; optional donations fund hosting and infrastructure.
Key features
- C# and .NET game development
- Desktop, mobile, and console targets
- OpenGL and DirectX rendering paths
- Content pipeline and build tools
- mgcb CLI for content processing
- Project templates and samples
- Cross-platform game deployment
- Community-maintained documentation hub
Use cases
- Indie desktop and mobile games
- Ports of XNA-style game code
- 2D and 3D titles in managed code
- Console builds for licensed developers
- Learning game programming with C#