MaxRev-Dev / gdal.netcore

GDAL 3.x C#/F# bindings for .NET apps
MIT License
161 stars 36 forks source link

unable to load DLL 'gdal_wrap' #140

Closed mamont80 closed 4 months ago

mamont80 commented 4 months ago

I use the combination MaxRev.Gdal.Core + MaxRev.Gdal.WindowsRuntime.Minimal version 3.9.0.218 on .Net Framework 4.8.

There is a problem; on some(!) machines it throws an exception: "unable to load DLL 'gdal_wrap': The specified module could not be found." However, on some servers everything works fine. I checked on 4 computers: it works on 2, it doesn’t work on 2. Those that work have other programs. I checked on "clean" Windows 10. It doesn't work. I'm guessing it's some kind of dependency issue. Installed Microsoft Visual C++ 2015-2022 Redistributable (x64). It did not help.

I checked the previous version 3.8.3.259. It works on all computers! But the previous version did not copy the GDAL binaries when building to the version for .Net Framwork 4.8. I had to manually add them from the nuget package. In the .NET 8 version of the software everything was fine, the DLLs were in the build directory.

MaxRev-Dev commented 4 months ago

See #137.