Getting Started with MonoGame C# in Rider IDE on Zorin Linux OS

NOTE: Zorin Linux is a fork of the popular Ubuntu 24.04 Linux

In this how-to I will demonstrate how to setup a MonoGame Desktop Project on Linux using the Rider IDE by Jetbrains. Yes, we will be using C# on Linux.

Prerequisites

First, you must have at least dotnet SDK 9, I would recommend 10. Enter the following command in the terminal on Linux:

sudo apt-get update && sudo apt-get install -y dotnet-sdk-10.0

At the time of this writing, Nov 19th, 2026, it will install dotnet SDK 10.0.115-0ubuntu~24.04.1.
I'm on Ubuntu 24.04 based Zorin Linux 18. Your distro may download a different one.
You can verify that the SDK installed correctly by issuing this command:
dotnet --list-sdks


You can also install additional (Optional) Workloads if needed:
                dotnet workload install ios
                dotnet workload install android
            
Install MonoGame Project Templates:
MonoGame provides project templates to create new projects that are pre-configured to target the current version of MonoGame as a base to begin creating games.
On the terminal window type the following command:
dotnet new install MonoGame.Templates.CSharp

You can verify the templates by listing them with this command:
dotnet new list monogame

The only one I'll be using here is the mgdesktopgl one.
You now have what you need to start programming with MonoGame using Rider.

I will be using the Rider IDE from Jetbrains in this how-to. You can download a free version to use
for non-commercial use directly from the Jetbrains website.

I keep all of my Rider projects under my home location /home/james/ in a folder called RiderProjects.
Open a terminal session and go to your /home/"yourname"/ location and make a dir called RiderProjects.
Then cd into the RiderProjects directory. Once there, execute this command in the termial.

                dotnet new mgdesktopgl -o MonogameTest <-- or whatever you want to name your project!
            
Then you will have a folder in RiderProjects called LearnMonoGame or whatever you called your project. You can then open that folder in the Rider IDE.

Below is a screenshot of the main game code file Game1.cs from the MonogameTest project and after that
a screenshot of the project loaded into the Rider IDE.

This is the MonogameTest project running.....