[MonoGame/MonoGame] templates for visual studio 2019 - Csharp

Visual Studio 2019 has been released today but monogame doesn't support templates for vs 2019. I tried to install monogame from the site after installing vs 2019 but templates didn't appear.

Asked Nov 13 '21 22:11
avatar VimperSky
VimperSky

9 Answer:

I could not find templates for VS 2017 anywhere, so that I had to install VS 2017 to get them. Leaving them here until there is no support of Visual Studio 2019 in the official MonoGame installer.

MonoGame.zip

Unzip to Documents\Visual Studio 2019\Templates\ProjectTemplates\Visual C#.

1
Answered May 17 '19 at 10:39
avatar  of amursky
amursky

This Version of the templates in the zip file do not appear in VS2019 for me. I compared them with VS2019 templates and updated the following tags in each of the .vstemplate files. Platform tag of Android is an example for the Android MonoGame project type.

  • --- MonoGame
  • --- C#
  • --- Android
  • --- Games-MonoGame

For VS 2019 unzip the VS2019MonoGame.zip file below to:
Documents\Visual Studio 2019\Templates\ProjectTemplates\Visual C#\ instead of the MonoGame.zip above. This will make the different MonoGame project types appear in the project creation screen in VS2019. Make sure you have installed MonoGame for Visual Studio already first. Hope this helps someone.

VS2019MonoGame.zip

This will give you a view like below. Select "Games-MonoGame" in the last dropbox filter to see them all.

image

1
Answered Nov 23 '19 at 02:40
avatar  of toddalbers
toddalbers

Hello,

I managed to create and launch a MonoGame Project in Visual Studio 2019 by copying all the MonoGame templates from %USERPROFILE%\Documents\Visual Studio 2017\Templates\ProjectTemplates\Visual C#\MonoGame to %USERPROFILE%\Documents\Visual Studio 2019\Templates\ProjectTemplates\Visual C#\MonoGame

Once the MonoGame Project created I just had to change the default Program used to open the Content.mgcb file, the default path for the MonoGame Pipeline Tool is : C:\Program Files (x86)\MSBuild\MonoGame\v3.0\Tools\Pipeline.exe

Hope it could help someone until MonoGame officially support Visual Studio 2019.

Regards

1
Answered Apr 20 '19 at 17:37
avatar  of LucasLibis
LucasLibis

As a workaround you can create the project with this

dotnet new --install MonoGame.Templates.CSharp
dotnet new mgdesktopgl -o MyGame
1
Answered Apr 02 '19 at 19:18
avatar  of ghost
ghost

MonoGame is moving to VS2019, don't worry, support will happen for both the CLI and the regular wizards. For the time being, the current source only support VS2019 through the CLI, while the installer doesn't support it at all. The installer will be dropped and replaced with a nuget-based distribution model, while the templates will be provided by both nugets for the CLI and (we hope so) a VS extension for wizards.

No ETA. If you wish to help speed up this transition process, you are very welcome to check #6879.

1
Answered Dec 17 '19 at 10:02
avatar  of mrhelmut
mrhelmut

Here, just unpack the zip, and than install the .mpack file by going into vs for mac extension manager, and selecting install from file:

MonoDevelop.MonoGameIDEVisualStudioForMac_3.8.0.1.mpack.zip

1
Answered Mar 19 '20 at 12:09
avatar  of harry-cpp
harry-cpp

I do plan to create a vsix that installs the templates. We should be able to build the vsix from the dotnet templating templates so there's no extra effort involved once it's set up.

1
Answered Nov 25 '19 at 11:47
avatar  of Jjagg
Jjagg

I could not find templates for VS 2017 anywhere, so that I had to install VS 2017 to get them. Leaving them here until there is no support of Visual Studio 2019 in the official MonoGame installer.

MonoGame.zip

Unzip to Documents\Visual Studio 2019\Templates\ProjectTemplates\Visual C#.

Only have VS2019 installed, this helps a lot, thanks!

1
Answered Sep 24 '19 at 13:49
avatar  of erosnick
erosnick

FYI, MonoGame is moving away from traditional Visual Studio templates and is now based on the dotnet CLI. Which means that creating new projects will work with dotnet new instead of the VS wizard.

The VS templates are still around but are likely to be removed soon (altogether with the installer; it will entirely work with nugets).

A new documentation will be put together to explain the CLI.

1
Answered Nov 25 '19 at 09:34
avatar  of mrhelmut
mrhelmut