Embeddinator-4000 icon indicating copy to clipboard operation
Embeddinator-4000 copied to clipboard

TypeLoadException: Type 'System.Drawing.Image' not found in assembly 'System.Drawing.Common ...

Open vmvmpvm opened this issue 6 years ago • 4 comments

Steps to Reproduce

  1. Clone https://github.com/Strangelovian/KeePass2Core and Build KeePassLibNetStd project.
  2. Run below command ~/.nuget/packages/embeddinator-4000/0.4.0/tools/objcgen -v KeePassLibNetStd.dll --target=framework --platform=iOS --outdir=output -c --debug

Expected Behavior

Generate Objective C bindings.

Actual Behavior

Throws below exception System.TypeLoadException: Type 'System.Drawing.Image' not found in assembly 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'

Environment

Source Assembly was targeted to .net standard 2.0

Hardware Overview: Model Name: MacBook Pro Model Identifier: MacBookPro14,1 Processor Name: Intel Core i7 Processor Speed: 2.5 GHz Number of Processors: 1 Total Number of Cores: 2 L2 Cache (per Core): 256 KB L3 Cache: 4 MB Memory: 16 GB Boot ROM Version: 184.0.0.0.0 SMC Version (system): 2.43f6

Symbol file /Users/****/.nuget/packages/embeddinator-4000/0.4.0/tools/IKVM.Reflection.pdb doesn't match image /Users/****/.nuget/packages/embeddinator-4000/0.4.0/tools/IKVM.Reflection.dll
Embeddinator-4000 v0.1 (0.4: 7664197)

Build Logs

objcgen-error-output1.txt

Example Project (If Possible)

https://github.com/Strangelovian/KeePass2Core

vmvmpvm avatar Jan 28 '19 06:01 vmvmpvm

Thanks @dalexsoto, is there anything I can contribute to help with this?

vmvmpvm avatar Feb 06 '19 16:02 vmvmpvm

We really appreciate contributions to Embeddinator code so feel free to tackle on this if you feel like it :)

dalexsoto avatar Feb 06 '19 16:02 dalexsoto

But do you have any guidance for me?, I am not really sure where to start.

vmvmpvm avatar Feb 06 '19 16:02 vmvmpvm

I have the same problem while trying to create a framework with an empty class...

gedaiu avatar Aug 15 '20 12:08 gedaiu