Bridge.NET Monogame Extended

Anyone done one yet?

Was about to start this for my web Monogame project, but it looks like a bit of work with pulling in Bridge.NET JSON and rewriting some stuff not in the Bridge.NET core library.

My guess is not, but just checking.

FYI, this wasn’t too difficult.

Steps:

  1. I wound up stripping out the serialization stuff. I didn’t really need it for my own purposes. There is a JSON library for Bridge.NET but it doesn’t include everything so wasn’t automatic.

  2. There was some “path” stuff for loading bitmap fonts I rewrote. Bridge.NET does not support Path.

  3. There was a UTF conversion that Bridge.NET doesn’t support for bitmap font glyphs. Also rewrote.

That’s it. Got it loaded and am supporting bitmap fonts on the web.

How would you use Monogame.Extended in a webproject with Monogame - using the DrawCircle-methods and so on?

I get the error:
Could not find file - ‘…\bin\Debug\net47\System.dll’. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)…

  • any idea how to use this library when using Monogame inside the browser?

Thank you!

You’ll have to download the source to Monogame.Extended and add Bridge.NET to it.

Bridge.NET replaces “System” with its own version of it.

You can only use projects that are Bridge.NET injected.

Then there will be a bunch of errors and you will have to spend some time fixing them or commenting out the things that you don’t need. Because there are a few things in there not compatible.

Bit of a pain. I would love it if more work were done on this project or the WASM idea.