I’m having a problem with my ContentImporter since upgrading to MonoGame 3.8 in a Windows environment. It’s a content importer that loads a bitmap (png) file and upscales it 4 times its normal size (useful for creating pixel graphics).
When I try and build content with this ContentImporter, I was first getting the error that System.Drawing.Common was missing. Once I resolved that by adding a reference to that DLL in MGCB Editor, I started getting “Could not load type ‘System.Drawing.Bitmap’ from assembly ‘System.Drawing.Common’”.
It doesn’t give me a specific error line from my code but the line in my code that creates a Bitmap which is used throughout my code looks like so:
Bitmap bitmap = Bitmap.FromFile(filename) as Bitmap;
My project is a Dot Net 3.1 project and I’m referencing the latest stable version of System.Drawing.Common (6.0.0).
This was working prior to upgrading to 3.8… I believe I was on 3.6 at the time.
I setup a console app to test running this and it works fine. It seems to only fail when its being run from the content importer ran by MonoGame / content importer editor.
Do I need a specific older version of System.Drawing.Common or anything else to check?