Hi,

You can let cmake to build the csharp libs for netstandard2.0
("-DCSHARP_LIBRARY_VERSION=netstandard2.0") which makes it compatible with
both the netframework and netcore versions.

Best regards,

Tamas


Parveen Sharma via gdal-dev <gdal-dev@lists.osgeo.org> ezt írta (időpont:
2025. febr. 19., Sze, 9:59):

> 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
>
>
> *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
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to