Skip to content

Instantly share code, notes, and snippets.

@redxdev
Last active April 1, 2023 22:54
Show Gist options
  • Save redxdev/ababe8ddb48d36f5070359b055aa39b6 to your computer and use it in GitHub Desktop.
Save redxdev/ababe8ddb48d36f5070359b055aa39b6 to your computer and use it in GitHub Desktop.
How to get MonoGame Templates for your IDE

Visual Studio 2017

MonoGame already supports installing templates from the official installer

dotnet Command Line

This works for all IDEs that support .net core (which is pretty much anything up to date nowadays). Use this if you can't get any other methods to work.

Install the latest .net core sdk. Run the following command:

dotnet new --install "MonoGame.Templates.CSharp"

This will install the template into dotnet (NOT your IDE). Create a new project with the following:

dotnet new mgdesktopgl -o MyCoolProject

Visual Studio 2019

Install the templates for VS2017, then copy them from

%UserProfile%\Documents\Visual Studio 2017\Templates\ProjectTemplates\Visual C#\MonoGame

to

%UserProfile%\Documents\Visual Studio 2019\Templates\ProjectTemplates\Visual C#\MonoGame

Alternatively, use dotnet to create projects (just installing the templates from dotnet will not make them show up in VS, you need to create the project from dotnet).

Rider

Install the templates via dotnet (see above), once the template is installed it should be selectable from the Rider new project wizard.

VS for Mac 2017

MonoGame already supports installing templates from the official installer

VS for Mac 2019

I don't believe there is a supported version of the MonoGame plugin, use dotnet (see above, just installing the templates from dotnet will not make them show up in VS, you need to create the project from dotnet).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment