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.

Missing Magick.NET-Q16-x64.Native.dll

See original GitHub issue

Hi there!

I’m trying to use your lib in .Net Core 2.0 project. I’m using Nuget for installing Magick.NET-Q16-AnyCPU 7.6.0. Unfortunately, my code fails on creating new MagickImage instance

MagickImage image = new MagickImage(ms);

with ‘Missing Magick.NET-Q16-x64.Native.dll’ error. This issue is similar to 235 and 25, but not identical. After the nuget package installation only Magick.NET-Q16-AnyCPU.dll is appeared in referencing project directory and output directory. However, downloaded and unzipped ‘magick.net-q16-anycpu.7.6.0.nupkg’ contains Magick.NET-Q16-x64.Native.dll in ‘runtimes’ folder.

My question is - what am I missing and where could I find this native dll? Thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
ANavakahtskycommented, Aug 22, 2018

Solved. Magick.NET-Q16-x64.Native.dll was found in obj folder (not copied to bin when project is built).

Also if you use visual studio OneClick Publish tool, be sure that you set correct RuntimeIdentifier in settings. In my case default list of options contained only ‘win-x64’, but magick.net awaits for one of the following: linux-x64, osx-64, win7-x64, win7-x86. You could find it in deps.json for referencing project.

"Magick.NET-Q16-AnyCPU/7.5.0": { "runtime": { "lib/netstandard20/Magick.NET-Q16-AnyCPU.dll": {} }, "runtimeTargets": { "runtimes/linux-x64/native/Magick.NET-Q16-x64.Native.dll.so": { "rid": "linux-x64", "assetType": "native" }, "runtimes/osx-x64/native/Magick.NET-Q16-x64.Native.dll.dylib": { "rid": "osx-x64", "assetType": "native" }, "runtimes/win7-x64/native/Magick.NET-Q16-x64.Native.dll": { "rid": "win7-x64", "assetType": "native" }, "runtimes/win7-x86/native/Magick.NET-Q16-x86.Native.dll": { "rid": "win7-x86", "assetType": "native" } } }

So, you need to add appropriate value manually to your PublishProfile.pubxml. After doing that, you could see Magick.NET-Q16-x64.Native.dll in publish directory. Hope this will help someone.

2reactions
dlemstracommented, Nov 15, 2018

The new version of Magick.NET will use win-x64 and win-x86 instead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[SOLVED] How To Fix Magick.NET-Q16-x64.Native.dll Not ...
Most Magick.NET-Q16-x64.Native.dll errors are related to missing or corrupt Magick.NET-Q16-x64.Native.dll files. Here are the top five most common Magick.
Read more >
ASP.net Unable to load DLL 'Magick.NET-Q16-x64.Native. ...
Workaround: assign user to application pool identity with extra privileges. Solution (worked for me). Manually set temp directory MagickNET.
Read more >
Missing Magick.NET-Q8-x64.Native.dll
Hi Foxnetsoft We get a error on our nopcommerce site with your plugin, the log says we are missing ”Magick.NET-Q8-x64.Native.dll”, and we can...
Read more >
Magick.NET-Q16-x64 13.2.0
Version Downloads Last updated 13.2.0 11,925 a month ago 13.1.3 24,387 2 months ago 13.1.2 11,379 3 months ago
Read more >
Exception thrown on Linux - Magick.NET
Unable to load DLL 'Magick.NET-Q8-x64.Native.dll': The specified module or one of its dependencies could not be found.
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