MonoGame is a robust cross-platform game development framework that is based on Microsoft's powerful XNA framework. The games you build with MonoGame are capable of running on iOS, Android, Mac OS X, tvOS, Windows, Linux, PlayStation 4, and Xbox.
Unlike XNA which only uses DirectX, MonoGame gives you the option to base your development around DirectX or OpenGL, so that you can best suit your programs for your targeted platform.
Because MonoGame is a framework, you use MonoGame to create your own game components and objects, which gives you much more control over your own games and allows you to create both 2D and 3D games.
But you are not limited to just developing games with MonoGame, you can also use it to create Engineering and Scientific software as well (i.e. CAD, CAM, FEA, and other Modeling Editors and Simulators).
And best of all, the MonoGame framework is Free, you don't even need to sign up or register for anything to use it, and you can use it to develop both personal and commercial software, royalty free.
Before you download and install the MonoGame framework, you should already have installed and be familiar with Microsoft's Visual Studio 2019 (Community edition or higher).
Click Here to navigate to Monogame website and download their latest development build of the MonoGame extension for Visual Studio 2019, which at the time of this writing is version 3.8.
Alternatively, you can also find the latest release on NuGet.
After you have installed the extension, I highly recommend that you install the MGCB Editor, which is a tool for editing the .mgcb files (i.e. the folders and files that will be in the games Content). This tool will make editing the .mgcb files so much easier. To register the MGCB Editor tool with Windows and Visual Studio 2019, run both of the following lines from the Command Prompt:
dotnet tool install --global dotnet-mgcb-editor
You can also install all of the MonoGame project templates for .NET CLI or Rider IDE (for Visual Studio 2019), by running the following from the Command Prompt:
dotnet new --install MonoGame.Templates.CSharp
After you have installed MonoGame framework and its templates, you can perform the following steps to build an empty starter game project with MonoGame using Windows and Visual Studio 2019.
Now you too can bring your imagination to life, and enjoy creating by programming with MonoGame.
In this section I will go over how to convert your existing Visual Studio 2019 MonoGame project Templates into Visual Studio 2022 MonoGame project Templates, and will walk you though the steps for converting and creating a C# UWP MonoGame application project template.
I am sure there are several different other ways that I could have accomplished the below, but I found that this approach worked well for me (easy and simple to do) and therefore I simply wanted to share it with you so that you too might continue to enjoy developing with MonoGame using the latest greatest Visual Studio 2022.
Note: If you prefer to not perform the steps outlined below then I encourage you to just keep checking back with MonoGame.net and see if they have any Ready To Install templates for Visual Studio 2022 available yet. At the time of this writing they did not yet have any available, which is why I had to do the following.
Before you begin, you should have the following items already downloaded, installed, and tested.
The following are the steps that I took to ultimately allow myself to be able to create new MonoGame projects within Visual Studio 2022 from its Create A New Project wizard. I'm sure there might be better ways of doing this, but this is the way that I found works well enough for me.
I only needed to perform these steps ONCE:
From now on, whenever I want to create a new MonoGame project in Visual Studio 2022, the template is now there and I just need to select it in Visual Studio's Create A New Project wizard window.
The above process might also work Ok for converting and creating other types of MonoGame project templates (other than UWP), but I have not yet tried it, mainly because of a lack of need for me. I assume you would just select and create a different MonoGame project type within Visual Studio 2019 during Step 1, and then follow the rest of the steps the same to create the new template for that project type into Visual Studio 2022.
Thank you for reading, I hope you found this blog post educational and helpful.