在Visual Studio 2015年MonoGame模板 [英] MonoGame templates in Visual Studio 2015

查看:223
本文介绍了在Visual Studio 2015年MonoGame模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚安装了Visual Studio 2015年,现在要开始一个新项目MonoGame(C#中,Windows DX)。
我被安装MonoGame,以及XNA。

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

的问题是,模板不会显示出的新项目的对话。

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

在Visual Studio的2013年,他们表现出。在这里,他们也无处可在项目树aynwhere别人发现

On Visual Studio 2013, they showed up here, they are also nowhere to be found aynwhere else in the Project tree.

所以,我搜索的模板,他们所描述的地点,他们应该是:

So I searched for the templates, they exist in the location where they should be:

C:\Users\<使用者> \Documents\Visual工作室2015\Templates\ProjectTemplates\Visual C#\\ \\MonoGame

我试着运行 devenv.exe的/ installvstemplates 从Visual Studio管理控制台,以及 devenv.exe的/设置 ,好措施。
这样做既几次,夹杂着少数的Visual Studio 2015年和Windows启动后,项目模板仍然没有显示出来了。

I tried running the devenv.exe /installvstemplates from the Visual Studio admin console, as well as devenv.exe /setup, for good measure. After doing both several times, mixed with a few Visual Studio 2015 and Windows restarts, the project templates are still not showing up.

我也试图清除缓存删除 C:\Users\<使用者> \AppData\Roaming\Microsoft\VisualStudio C:\\ \\Users\<使用者> \AppData\Local\Microsoft\VisualStudio\14.0 ,都无济于事。

I also tried to clear the cache by deleting C:\Users\<user>\AppData\Roaming\Microsoft\VisualStudio and C:\Users\<user>\AppData\Local\Microsoft\VisualStudio\14.0, to no avail.

。该MonoGame安装程序进行自定义与Visual Studio 2015年的工作,所以我想它应该以某种方式工作。

The MonoGame installer was customized to work with Visual Studio 2015, so I assume it should work somehow.

那么,谁能帮助我获得设置这些项目模板?

So, can anyone help me getting those project templates set up?

推荐答案

我发现它为什么不工作:

I found out why it wasn't working:

显然,在MonoGame安装程序将模板在错误的文件夹为Visual Studio 2015

Apparently, the MonoGame installer puts the Templates in the wrong folder for Visual Studio 2015.

有关VS2015正确的文件夹是

The correct folder for VS2015 is

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

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

MonoGame安装程序安装到C:\Users\user\Documents\ 的Visual Studio 2015 \Templates\ProjectTemplates\Visual C#

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

所以,当该文件夹内的文件夹MonoGame被移动到第一个,而 devenv.exe的/ installvstemplates 命令得到执行,这些模板会显示。

So, when the folder MonoGame inside that folder gets moved to the first one, and the devenv.exe /installvstemplates command gets executed, the templates show up.

这篇关于在Visual Studio 2015年MonoGame模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆