This project has moved and is read-only. For the latest updates, please go here.

Monogame + farseer + windows phone 8

Topics: Developer Forum, User Forum
Jan 12, 2014 at 7:42 PM
Has anyone gotten Farseer to run on a Windows Phone 8 using Monogame?

I'd be very intereseted to know what you did as I'm getting alot of errors and problems when trying.
Jan 13, 2014 at 8:44 AM
Edited Jan 13, 2014 at 8:45 AM
I took the Monogame version of farseer and converted it to a WP8 class library (by replacing all the xml in csproj file with xml from a wp phone project created in VS2013). What I noticed then is that the WP8 SDK libraries which must be referenced for a WP project contain the old XNA libraries. This caused alot of problems as the farseer project couldent decide between Monogame.XNA and Microsoft.XNA (as they are in the same namespace)

To get past this I tried creating an Alias for the Monogame and adding the extern alias command at the top of every class to point specifically at monogame..

At this point pretty much every line in the farseer project caused an error and I decided I needed sleep.
Jan 14, 2014 at 8:31 AM
Wouldnt it be bettter to take the Silverlight route? im am curious since I might try windows store or windows phone if it picks up traction.
Silverlight APIs are supposed to map to WP 8 apis fairly directly. I read Wp8 is supposed to support C# and XAML directly. There is a silverlight farseer sample, then you'd have to get it to compile under wp8 sdk, MSFT has some documents how to do this. And i see this guy had it easy:
Jan 14, 2014 at 9:20 AM
Edited Jan 14, 2014 at 9:25 AM
Microsoft is no longer developping Silverlight (it is going the same path as XNA) which makes me iffy about using it for anything.

Also getting the game loop going with Monogame was easy, the hard part is getting Farseer to work as XNA is included in the referenced binaries that you must use in order to build for WP8.