Skip to content
Discussion options

You must be logged in to vote

For .NET Framework projects the behavior is expected: native GDAL binaries from the Windows runtime package are copied to the application output folder. The runtimes\win-x64\native layout only works automatically in SDK-style projects with publish-time RID resolution (i.e., .NET Core or SDK-style .NET Framework).

You have two options:

  1. Recommended: keep the native DLLs next to your main assembly and simply call:
using MaxRev.Gdal.Core;
GdalBase.ConfigureAll();
  1. If you want use runtimes\win-x64\native: move only the native DLLs there and add that folder to the DLL search path before any GDAL calls:
var baseDir = AppDomain.CurrentDomain.BaseDirectory;
var nativePath = Path.Combine(baseDir, 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MaxRev-Dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants