How to Install MonoGame

How to Install MonoGame

This article will cover how to set up the MonoGame framework for game development.

Info
MonoGame recommends using Visual Studio Community for development - the setup of which is covered in this article. You can, however, use other code editors like Visual Studio Code. For information on installing Visual Studio Code, please see this article: How to Install Visual Studio Code

Installing Visual Studio Community

For working with MonoGame, we'll be using Visual Studio Community. In this first section, we'll install Visual Studio Community itself.

1. Head to the Visual Studio downloads page at https://visualstudio.microsoft.com/downloads/
2. On the downloads page, select the "Free download" option for the Community version. Your operating system should be automatically detected for the right download version.



3. Double-click the downloaded file to start the installation process. Make sure when picking Workloads that you choose to install the .NET desktop environment.



Installing the MonoGame Extension

In order to run MonoGame in Visual Studio Community, we need to install an extension.

1. Launch Visual Studio Community (once its installation is complete).
2. From the file menu bar, select Extensions > Manage Extensions.



3. In the new window, use the search bar to locate the MonoGame template. Once located, hit the Download option.


4. Close the editor and run through the installation process for the MonoGame extension.


Creating a MonoGame Project

With our installation steps done, we just need to create a MonoGame project.

1. Launch Visual Studio Community again and select the "Create a new project option".



2. Search for MonoGame and choose the option "MonoGame Cross-Platform Desktop Application".



3. Enter a name for your project, choose a location, and hit create. Your MonoGame project is now ready to go!


    • Related Articles

    • How to Install Unity

      This article will cover both how to install Unity for the first time, and how to install new versions of Unity for pre-existing installations. Before installation you may wish to review Unity's system requirements. First Time Installation Only - ...
    • How to Install GameMaker

      This article will cover how to install the GameMaker engine. Before installation, you may wish to review GameMaker's system requirements. Downloading and Installing GameMaker 1. Head to the GameMaker download page at https://gamemaker.io/en/download ...
    • How to Install Rust

      This article will briefly cover how to set up Rust for Rust-based projects. Installing Rust 1. Head to the Rust installation page at https://www.rust-lang.org/tools/install 2. The page should automatically detect your operating system and present you ...
    • How to Install Python

      If you intend to use our Python courses with a code editor like Python's built-in IDLE editor, Visual Studio Code, Anaconda, Spyder, or something else, you will need to first install the Python runtime to your local computer. This short article will ...
    • How to Install Blender

      In this article, we'll discuss how to install Blender, the free, 3D modeling software. Before beginning, you may wish to review Blender's system requirements. Installing Blender 1. Go to the download page on the official Blender site at ...