Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am trying to port a XNA project to MonoGame which involves a DLL game library that I created. This library uses the IGameComponent, IUpdateable and IDrawable interfaces to load one of my library classes as a GameComponent.

The compiler gives errors related to these interfaces, saying, for example: The type 'Microsoft.Xna.Framework.IUpdateable' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Xna.Framework.Game'...

This would require me to add Microsoft.Xna.Framework.Game to my reference list, which defeats the point of porting to MonoGame. Is there any way these interfaces can be made compatible with MonoGame

share|improve this question
1  
Monogame has it's own IUpdateable. Check you .dll and fix IT'S reference to point to Monogame's framework. –  Dialock Mar 4 '13 at 1:54
    
So my library project should have another build, to refer to MonoGame? –  ChrisC Mar 4 '13 at 4:35
add comment

1 Answer

You'll need to recompile your DLL game library after changing all the XNA references to MonoGame references.

MonoGame redefines the interfaces under the same namespace but in a different assembly. It makes things easier to port once you understand whats going on, but can make errors like this slightly confusing.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.