I created a folder "windows extensions" (can be any name) in the debug folder of my F# project, copied the entire gdal extension folder inside it, and referenced the dll like in the first post, in the library1.fs file and rebuilt the project. I think the ...GdalExtension.dll has relative references to the other files, so, as long as you keep the folder structure, this dll can see all the other files it needs. Thus you just need to reference that one dll. It works for opening rasters using gdal and plotting in the map control, I haven't tried any other functions yet.
↧