[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.
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.
Unzip to Documents\Visual Studio 2019\Templates\ProjectTemplates\Visual C#
.
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.
This will give you a view like below. Select "Games-MonoGame" in the last dropbox filter to see them all.
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
As a workaround you can create the project with this
dotnet new --install MonoGame.Templates.CSharp
dotnet new mgdesktopgl -o MyGame
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.
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
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.
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.
Unzip to
Documents\Visual Studio 2019\Templates\ProjectTemplates\Visual C#
.
Only have VS2019 installed, this helps a lot, thanks!
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.
Read next
- rust rustdoc: it should be possible to leave "Methods From Deref" empty, as was previously the default behaviour - Rust
- Cannot generate QR Code - JavaScript whatsapp-web.js
- ml5-library Byte length error on CharRNN Interactive p5 Example - JavaScript
- Proposition de traduction - TypeScript elevate
- Syncplay doesn't always syncronize with VLC - syncplay
- Moving sketch window breaks sketch window size - Java processing
- Feature Request: Expose `strokeWidth` as an (optional) prop - JavaScript react-feather
- documentation Update remark dependencies - JavaScript