MonoGame Templates in Visual Studio 2015

I just installed Visual Studio 2015 and now want to start a new MonoGame project (C #, Windows DX). I have installed MonoGame as well as XNA.

The problem is that templates are not showing in the New Project dialog.

enter image description here

In Visual Studio 2013 they appeared here, they are also not found anywhere in the other aynwhere else project tree.

So, I was looking for templates, they exist where they should be:

C:\Users\<user>\Documents\Visual Studio 2015\Templates\ProjectTemplates\Visual C#\MonoGame

enter image description here

I tried running devenv.exe /installvstemplates

from Visual Studio Admin Console, also devenv.exe /setup

for a good estimate. After mixing multiple times with multiple versions of Visual Studio 2015 and Windows, the project templates are still not showing.

I have also tried clearing the cache by deleting C:\Users\<user>\AppData\Roaming\Microsoft\VisualStudio

and C:\Users\<user>\AppData\Local\Microsoft\VisualStudio\14.0

, to no avail.

The MonoGame installer has been configured to work with Visual Studio 2015, so I am guessing it should work somehow.

So, can anyone help me customize these project templates?


source to share

2 answers

I found out why it doesn't work:

Apparently the MonoGame installer is putting templates in the wrong folder for Visual Studio 2015.

Correct folder for VS2015

C: \ Users \ user \ Documents \ Visual Studio 14 \ Templates \ ProjectTemplates \ Visual C #

MonoGame installer installs to C: \ Users \ user \ Documents \ Visual Studio 2015 \ Templates \ ProjectTemplates \ Visual C #

So when the MonoGame folder inside this folder is moved to the first one and the command is devenv.exe /installvstemplates

run, templates appear.



If you are running as a standard user and setting up MonoGame as an administrator, the MonoGane templates have only been installed under the administrator account.

So I just make a copy in my user \ProjectTemplates\Visual C#


Installing MonoGame:

C:\Users\**Admin**\Documents\Visual Studio 2015\Templates\ProjectTemplates\Visual C# 


The correct folder is under my user account:

C:\Users\**user**\Documents\Visual Studio 2015\Templates\ProjectTemplates\Visual C# 


Then, as said above, just run devenv.exe /installvstemplates

from the developer command line for VS2015.



All Articles