imazen / imageflow-dotnet

The official .NET API for Imageflow, the Rust image processing and optimization engine for web servers
GNU Affero General Public License v3.0
143 stars 25 forks source link

Unable to load imageflow.dll #49

Closed alexandruIonutZ closed 1 year ago

alexandruIonutZ commented 1 year ago

I use imageflow library in a .net 7 application. When I build the solution, the Imageflow.Net.dll is generated but the imageflow.dl is not.

Looking for \"imageflow.dll\" RID=\"win-x64\", IsUnix=False, IsDotNetCore=True RelativeSearchPath=\"\"\nBefore searching: Unable to load DLL 'imageflow' or one of its dependencies: The specified module could not be found. (0x8007007E)\nFile not found: \bin\Debug\net7.0\x64\imageflow.dll\nFile not found: \bin\Debug\net7.0\imageflow.dll\nFile not found: \bin\Debug\net7.0\runtimes\win-x64\native\imageflow.dll\n at Imageflow.Bindings.NativeMethods.imageflow_context_create(UInt32 imageflowAbiVerMajor, UInt32 imageflowAbiVerMinor)\r\n at Imageflow.Bindings.JobContextHandle.<>c.<.ctor>b__0_0()\r\n at Imageflow.Bindings.NativeLibraryLoader.FixDllNotFoundException[T](String basename, Func1 invokingOperation, IEnumerable1 customSearchDirectories)\r\n"

alexandruIonutZ commented 1 year ago

I solved the problem. It was necessary to install Imageflow.NativeRuntime.win-x86_64 in the source application. Thank you very much.