<div dir="ltr">At the moment it looks like only the 3rd option below supports .net core. However since that is a custom build, use the dependencies (gdal_wrap.dll etc.) provided by the same bundle, ie: 

<a href="https://www.nuget.org/packages/Gdal.Core.WindowsRuntime/2.3.0-beta-023" rel="noreferrer" target="_blank">https://www.nuget.org/packages/Gdal.Core.WindowsRuntime/2.3.0-beta-023</a>  These dll-s support x64 only as far as I see.<div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div><br><div><br></div><div><br><div class="gmail_quote"><div dir="ltr">Gigas002 <<a href="mailto:gigas002@yandex.ru">gigas002@yandex.ru</a>> ezt írta (időpont: 2018. dec. 15., Szo, 15:50):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello everyone. I'm trying to use c# bindings with .NET Core 2.0 on Visual<br>
Studio 2017.<br>
Tried to use multiple nuget packages:<br>
1. <a href="https://www.nuget.org/packages/GDAL/" rel="noreferrer" target="_blank">https://www.nuget.org/packages/GDAL/</a> +<br>
<a href="https://www.nuget.org/packages/GDAL.Native/" rel="noreferrer" target="_blank">https://www.nuget.org/packages/GDAL.Native/</a><br>
I used these packages for my .NET Framework project and it worked fine, but<br>
it doesn't compile on .NET Core. The namespace OSGeo just couldn't been seen<br>
and " 'GDAL.Native 2.3.2' package was restored using<br>
'.NETFramework,Version=v4.6.1' " warning is thrown by VS.<br>
2. <a href="https://www.nuget.org/packages/GDAL.NET/" rel="noreferrer" target="_blank">https://www.nuget.org/packages/GDAL.NET/</a><br>
Throws the same warning about .NET Framework 4.6.1 and requires to write<br>
GdalConfiguration class, because Gdal.AllRegister() method wouldn't work. <br>
3. <a href="https://www.nuget.org/packages/Gdal.Core/2.3.0-beta-023" rel="noreferrer" target="_blank">https://www.nuget.org/packages/Gdal.Core/2.3.0-beta-023</a> +<br>
<a href="https://www.nuget.org/packages/Gdal.Core.WindowsRuntime/2.3.0-beta-023" rel="noreferrer" target="_blank">https://www.nuget.org/packages/Gdal.Core.WindowsRuntime/2.3.0-beta-023</a> +<br>
<a href="https://www.nuget.org/packages/Gdal.Core.LinuxRuntime/2.3.0-beta-023" rel="noreferrer" target="_blank">https://www.nuget.org/packages/Gdal.Core.LinuxRuntime/2.3.0-beta-023</a><br>
Doesn't throw any warnings/errors, compiles fine and Gdal.AllRegister()<br>
method works OK. <br>
<br>
So, the built application works with the 3rd set of packages. But after<br>
building the app, I use VS's "publish" to create standalone win-x64 and<br>
linux-x64 app. And this version doesn't work at all.<br>
At first it throws exception, because it couldn't find gdal_wrap.dll, if<br>
I'll copy all needed dll's and the content from gdal-data directory from<br>
pre-built gdal binaries (taken from here for example:<br>
<a href="http://www.gisinternals.com/query.html?content=filelist&file=release-1911-x64-gdal-mapserver.zip" rel="noreferrer" target="_blank">http://www.gisinternals.com/query.html?content=filelist&file=release-1911-x64-gdal-mapserver.zip</a>)<br>
to the directory with published .exe file, it'll throw another error:<br>
System.EntryPointNotFoundException: Unable to find an entry point named<br>
'CSharp_OSGeofGDAL_AllRegister___' in DLL 'gdal_wrap'.<br>
So, probably I'm doing something wrong? Is there a complete guide how to use<br>
gdal bindings with .NET Core to built standalone application? Thanls in<br>
advance for your reply!<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html</a><br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></blockquote></div></div></div></div>