Monodevelop. Method that visible from Assembly Bro

2019-09-09 06:46发布

问题:

I have the .dll that is part of AForge.NET framework. I can't compile project because:

Error CS0584: Internal compiler error: Could not import type `AForge.Imaging.Filters.Sepia' from `AForge.Imaging, Version=2.2.4.0, Culture=neutral, PublicKeyToken=ba8ddea9676ca48b' (CS0584) (projectName)
Error CS0584: Internal compiler error: Could not import type `AForge.Imaging.Filters.Invert' from `AForge.Imaging, Version=2.2.4.0, Culture=neutral, PublicKeyToken=ba8ddea9676ca48b' (CS0584) (projectName)
Error CS0584: Internal compiler error: Method not found: 'AForge.Imaging.UnmanagedImage.CollectActivePixels'. (CS0584) (tryingImageProcessing)

But all of these methods and classes are visible from the assembly browser. Here is the link to the project with error. I also reported a bug to xamarin bugzilla.

Hope this post wouldn't be treated as copy of my previous: question of that post is completely different from current.

UPDATE: Well, I've found what the problem was. @Jason was right: I haven't compiled libraries against MonoTouch, it was compiled against Mono. So I've created new projects and past sources there. AForge (Core) and AForge.Math compiled perfectly while AForge.Imaging hasn't: System.Drawing from github.com/mono/ implement some functions that AForge.Imaging needs. Hence, there is no solution by now.