question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Duplicate types in Magick.NET.Core.dll and Magick.NET-Q8-AnyCPU.dll

See original GitHub issue

I noticed that there are some duplicate types/members since you separated the DLLs. Some of us may like to merge DLLs to get a single deployable DLL and these duplicates cause conflicts (e.g. when using ILRepack).

For example, ImageMagick.IMagickImageExtensions (static class for extension methods) is found in Magick.NET.Core.dll and Magick.NET-Q8-AnyCPU.dll.

Here are other duplicates I noticed:

ImageMagick.ByteConverter
ImageMagick.FileHelper
ImageMagick.Bytes
ImageMagick.EnumHelper
ImageMagick.Throw
ImageMagick.TypeHelper
ImageMagick.ValidatedNotNullAttribute

Maybe the ones in Magick.NET.Core.dll could be used or extended when necessary?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dlemstracommented, Jul 20, 2020

The new release has just been published @catester. Are the duplicate names now gone?

0reactions
dlemstracommented, Jul 4, 2020

This appears to be a mistake in my code. There is an old “quantum” check that was copied to the Core library and should not be there. I think I will need to rename the SetPixels and SetArea methods that have a non quantum overload. Do you have any suggestions for the method names?

void SetPixels(double[] values);

void SetDoublePixels(double[] values);
void SetPixelsWithDoubleArray(double[] values);

void SetArea(IMagickGeometry geometry, double[] values);

void SetDoubleArea(IMagickGeometry geometry, double[] values);
void SetAreaWithDoubleArray(IMagickGeometry geometry, double[] values);
Read more comments on GitHub >

github_iconTop Results From Across the Web

Magick.NET does not copy libraries to the correct location ...
Magick.NET does not copy libraries to the correct location on macOS (or Linux). When running I get the following error: Magick.NET-Q8-AnyCPU: ...
Read more >
Could not load file or assembly 'Magick.NET-x86.DLL' or ...
I have used Magick.NET which is a .NET wrapper for ImageMagick, and it throws the above error on a client machine. It works...
Read more >
Magick.net crashes but doesn't throw any errors in Windows
I am building the program in VS2013 in Windows 7 64bit on a VMware machine. Runs fine. I'm able to loop through hundreds...
Read more >
Magick.NET.Core 13.2.0
ImageMagick is a powerful image manipulation library that supports over 100 major file formats (not including sub-formats). With Magick.NET you can use ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found