[gdal-dev] Can we build CSharp Bindings in GDAL v3.9.3 or later with DOT NET FRAMEWORK 4.8?

Parveen Sharma sharma1981 at outlook.com
Wed Feb 19 00:58:53 PST 2025


Hello

I am trying to build GDAL CSharp bindings from v3.9.3 branch<https://github.com/OSGeo/gdal/tree/v3.9.3/swig/csharp>.

The documentation for v3.9.3<https://gdal.org/en/stable/api/csharp/csharp_compile_cmake.html#net-build-toolchain> states that it needs .NET 5.0 OR Mono

[cid:459f78aa-7867-445a-8c18-cbdc80f04432]

Question : Is it possible to build GDAL source v3.9.3 using DOT NET Framework 4.8 or less? I am using below flags BUT it seems the build process is attempting to look for only .NET SDK and not the DOT NET FRAMEWORK

      <arg value="-DBUILD_CSHARP_BINDINGS=ON"/><!-- C# Bindings-->
      <arg value="-DCSHARP_LIBRARY_VERSION=4.8"/>
      <arg value="-DCSHARP_APPLICATION_VERSION=4.8"/>


Does GDAL still support building CSharp Bindings with .net framework?

Please let me know.

Best regards,
Parveen

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250219/0831e589/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 40496 bytes
Desc: image.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250219/0831e589/attachment-0001.png>


More information about the gdal-dev mailing list