Search code examples
c#visual-studioxnanugetmonogame

Can't use Monogame.Framework.Graphics


I'm porting my XNA game to Mono. I've installed the Monogame Windows NuGet package and ran the installer provided at monogame.net, but I still don't have access to the majority of the Monogame framework, like Monogame.Framework.Graphics, Vector2, etc. Why not?

Edit: I can even see it referenced in Visual Studio. It's the right version and everything. What is going on?

ReferenceManager

Intellisense


Solution

  • The NuGet package is just the Visual Studio templates for MonoGame. You need to install the actual framework.

    Download from their website: http://www.monogame.net

    Once installed, your code will build just fine. To maintain compatibility with XNA projects, Monogame uses XNA namespaces (but does not require XNA DNA to work). See community discussion here: http://community.monogame.net/t/solved-xna-no-longer-required-to-use-monogame/2803/3