System.Drawing.Image.FromFile not works in release build?

It works fine in Editor. But after build the release, this function throws exception like below:

TypeLoadException: Could not load type ‘System.IO.InternalBufferOverflowException’ from assembly ‘System.Drawing’.
at System.Drawing.Image.FromFile (System.String filename, Boolean useEmbeddedColorManagement) [0x00000] in :0
at System.Drawing.Image.FromFile (System.String filename) [0x00000] in :0
at DialogMenu.PrintCard () [0x00000] in :0
at DialogMenu.OnGUI () [0x00000] in :0

I have put System.Drawing.Dll from Mono in plugin folder. Is there anything else I am missing in release build?

Thank you in advance for any suggestions!

Did you ensure to be on a Windows or OSX build?

I figured out the solution, just select “.NET 2.0” in API Compability Level rather than the default “.NET 2.0 Subset”. Thanks anyway.

I am just wondering, can you do this and have it work on iOS?

try it, thats the only way to know if relevant frameworks are cut on the iOS mono version
if it works though then pretty surely only without stripping