Installing Monogame
These instructions will provide you with the steps to install the Monogame program templates, and the Monogame Content Builder tool.
Installing Monogame and the Content BuilderTool
Step 1: Adding Monogame Extension
Monogame is an extension that can be added to Visual Studio using the Extension Manager. Here are instructions:
Note: Once you have chosen to add the extension in the extension manager, you will have to close Visual Studio in order for the installation to happen.
**The Monogame Extension has not been added to VS2022 yet. We can still create Monogame projects, you will just need to install the templates for the CLI (Command Line Interface)
In the powershell, type:
dotnet new --install MonoGame.Templates.CSharp
Step 2: Setting up MGCB Editor (MonoGame Content Builder Tool)
After you have added the Monogame extension to Visual Studio, you will need to install the MGCB Tool and link it to Visual Studio. This will be used to add textures, sounds, etc. to your projects.
1 - Open your PowerShell by right clicking on on the Start menu and selecting Windows Powershell.
2 - Type the following command into the PowerShell:
dotnet tool install --global dotnet-mgcb-editor
You may need to wait for a few minutes for this to finish.
3 - Once this is fully installed, close the PowerShell window, and open it again.
4 - Type the following command into the PowerShell:
mgcb-editor --register
This will make the MGCB tool available from within Visual Studio.