问题描述
我使用了 Magick.NET,它是 ImageMagick 的 .NET 包装器,它会在客户端计算机上引发上述错误.不过,它在我的机器上运行良好.我还没有安装 ImageMagick,所以我根本无法理解我需要在客户端机器上做什么.我已经安装了 VS 2012.
I have used Magick.NET which is a .NET wrapper for ImageMagick, and it throws the above error on a client machine. It works fine on my machine though. I have not installed ImageMagick so I simply can't understand what I need to do on a client machine. I have VS 2012 installed.
此外,Magick.NET 在其中包含 ImageMagick,我认为它使用 C++/CLI 并向本机 ImageMagick 公开一个 .NET 接口,所有这些都在单个 DLL 中.那么它需要什么DLL呢?
Also, Magick.NET includes ImageMagick within it, I think it uses C++/CLI and exposes a .NET interface to the native ImageMagick, all within a single DLL. So what DLL does it need?
(我刚刚遇到这个错误,所以发布了我找到的解决方案.)
(I just came across this error so posting the solution I found.)
推荐答案
Magick.NET 需要 VC 2012 Runtime 已安装,Magick.NET V7+ (.NET 4.0) 需要 2012 和 VC 2015 运行时已安装.下载并安装在客户端机器上.如果它弹出一个修复或卸载"对话框,那么它已经安装,你可能缺少另一个依赖项.如果没有,请安装 VCR 并重新启动您的应用.
Magick.NET needs the VC 2012 Runtime installed, and Magick.NET V7+ (.NET 4.0) needs 2012 and the VC 2015 Runtime installed. Download and install on client machine. If it pops up a "repair or uninstall" dialog then its already installed and you might be missing another dependency. If not, install VCR and restart your app.
这篇关于无法加载文件或程序集“Magick.NET-x86.DLL"或其依赖项之一的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!