C# 如何将 MonoGame 安装到 Visual Studio 2013 中?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18944481/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-10 13:39:28  来源:igfitidea点击:

How can i install MonoGame into Visual Studio 2013?

c#visual-studiovisual-studio-2013xnamonogame

提问by Juraj Mlich

How can I install MonoGame templates for Visual Studio 2013?

如何为 Visual Studio 2013安装 MonoGame 模板?

回答by Ondrej Janacek

You can find a tutorial on thiswebsite. It is a github repository of the MonoGame project so the link should work as long as the framework is being developed.

您可以在网站上找到教程。它是 MonoGame 项目的 github 存储库,因此只要框架正在开发,该链接就应该有效。

You can also check out this 4-part tutorial on youtube.

您还可以在 youtube 上查看这个由 4 部分组成的教程。

http://www.youtube.com/watch?v=FYCWl2jU0zI

http://www.youtube.com/watch?v=ZedtwoL9_M0

http://www.youtube.com/watch?v=TR_JWVI2lEk

http://www.youtube.com/watch?v=7h5uHUck79A

http://www.youtube.com/watch?v=FYCWl2jU0zI

http://www.youtube.com/watch?v=ZedtwoL9_M0

http://www.youtube.com/watch?v=TR_JWVI2lEk

http://www.youtube.com/watch?v=7h5uHUck79A

回答by Paul McCowat

Assuming you want C# templates:

假设您想要 C# 模板:

  • Install MonoGame from here

  • Find the Visual Studio templates folder (usually C:\Users[your user name]\Documents\Visual Studio 2012\Templates\ProjectTemplates\Visual C#)

  • Copy the MonoGame folder to the Visual Studio 2013\Templates\ProjectTemplates\Visual C# folder.

  • 这里安装 MonoGame

  • 找到 Visual Studio 模板文件夹(通常是 C:\Users[您的用户名]\Documents\Visual Studio 2012\Templates\ProjectTemplates\Visual C#)

  • 将 MonoGame 文件夹复制到 Visual Studio 2013\Templates\ProjectTemplates\Visual C# 文件夹。

回答by Thiago Romam

The Paul McCowat's answer is correct.

Paul McCowat 的回答是正确的。

Also, if you doesn't have visual studio 2012 in your machine, just create the folders hierarchy as he said. (C:\Users[your user name]\Documents\Visual Studio 2012\Templates\ProjectTemplates\Visual C#) Then the Monogame installer can find the folder to copy the templates.

另外,如果您的机器中没有visual studio 2012,只需按照他说的方式创建文件夹层次结构。(C:\Users[您的用户名]\Documents\Visual Studio 2012\Templates\ProjectTemplates\Visual C#) 然后 Monogame 安装程序可以找到复制模板的文件夹。

Update: I don't have visual studio 2012 installed in my machine, so I had some problems to resolve in this way.

更新:我的机器上没有安装 Visual Studio 2012,所以我有一些问题需要通过这种方式解决。

I edited some files on every template I wanted to use, searching for references of DLLs of visual studio 2012, then i changed the versions of these DLLs from 11 to 12.

我在我想使用的每个模板上编辑了一些文件,搜索 Visual Studio 2012 的 DLL 的引用,然后我将这些 DLL 的版本从 11 更改为 12。

Now it works!

现在它起作用了!

回答by Anirudha Gupta

UPDATED 7 January 2014

2014 年 1 月 7 日更新

For people who want to use Monogame can download the 3.2 which provide the support for 2013.

想要使用Monogame的人可以下载支持2013的3.2。

The installer are available at http://build.monogame.net/job/develop-win/lastSuccessfulBuild/artifact/Installers/Windows/

安装程序可在http://build.monogame.net/job/develop-win/lastSuccessfulBuild/artifact/Installers/Windows/ 获得

If you try this way you don't need to do any kind of copy-paste for project templates.

如果您尝试这种方式,则不需要对项目模板进行任何类型的复制粘贴。

UPDATED 9 January 14

14 年 1 月 9 日更新

3.2 build have some trouble now. Check the very common issue here http://monogame.codeplex.com/discussions/467277

3.2 build 现在有些麻烦。检查这里非常常见的问题http://monogame.codeplex.com/discussions/467277

回答by Grochni

Now Mono 3.4 can be downloaded for Visual Studio directly and the installer automatically installs the templates into Visual Studio. Installers are available here.

现在可以直接为 Visual Studio 下载 Mono 3.4,安装程序会自动将模板安装到 Visual Studio 中。安装程序可在此处获得