Getting MonoGame working with Visual Studio 2013

When I first started dabbling with XNA and MonoGame, all the documentation and content on PluralSight was based around Visual Studio 2010. So, I set that up, just so I can get it working.

Well, since I had to rebuild my machine a couple of days ago, I’d like to get just this working on VS2013, so that I have one installation of Visual Studio.

When I say “get it working”, I mean that you can install MonoGame on Windows 8.1 and Visual Studio 2013 without error (and don’t forget to run C:Program Files (x86)MonoGamev3.0oalinst.exe or else it will give you errors, later), but when you go to create a new project, there aren’t any project templates there for MonoGame.

So, I google it on Bing and run across this very helpful post on StackOverflow:

How do I install MonoGame into Visual Studio 2013?
http://stackoverflow.com/questions/18944481/how-can-i-install-monogame-into-visual-studio-2013

That describes a few pieces of it, but this didn’t work completely for me. First, I only have VS2013 installed (and not any previous versions), so before you run the MonoGame installer (or before you run it a second time), go and manually create this directory:

C:Users[YourUserName]DocumentsVisual Studio 2012TemplatesProjectTemplatesVisual C#MonoGame

You you (re)run the installer, you will see that folder now has a bunch of .zip files in it, these are Visual Studio project templates. Copy those, and then create this directory for VS2013:

C:Users[YourUserName]DocumentsVisual Studio 2013TemplatesProjectTemplatesVisual C#MonoGame

And paste those files in there. Now re-launch Visual Studio 2013, and sure-enough, you now see the project templates:

image

When I try to create a new OpenGL project for example, and compile it, I get this error:

mx3E834

I searched around a bit, and I don’t really know what this file is. It shows up as a missing linked file in the root of the project. If I remove the reference, the project compiles and runs fine!

Assuming that doesn’t come back to haunt me, that’s all you need to do to get MonoGame working with Visual Studio 2013!

Posted in Mono, Uncategorized, XNA and MonoGame

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Archives
Categories

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 2 other followers

%d bloggers like this: