[gdal-dev] Can we build CSharp Bindings in GDAL v3.9.3 or later with DOT NET FRAMEWORK 4.8?
Ross King
ross.king at Altavec.com
Wed Feb 19 17:40:53 PST 2025
I would use one of the NuGet packages that are built for .NET Framework
https://www.nuget.org/packages?q=MaxRev.Gdal
These should suffice, rather than building the bindings yourself.
Cheers,
Ross
________________________________
From: gdal-dev <gdal-dev-bounces at lists.osgeo.org> on behalf of Parveen Sharma via gdal-dev <gdal-dev at lists.osgeo.org>
Sent: Wednesday, 19 February 2025 19:58
To: Michał Kowalczuk via gdal-dev <gdal-dev at lists.osgeo.org>
Subject: [gdal-dev] Can we build CSharp Bindings in GDAL v3.9.3 or later with DOT NET FRAMEWORK 4.8?
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
Caution: Please do not click links or open attachments unless you recognise the sender and know the content is safe.
This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. Any confidentiality is not waived or lost because this email has been sent to you by mistake. This email may contain personal information of individuals, and be subject to Commonwealth and/or State privacy laws in Australia. This email is also subject to copyright. If you are not the intended recipient, you must not read, print, store, copy, forward or use this email for any reason, in accordance with privacy and copyright laws. If you have received this email in error, please notify the sender by return email, and delete this email from your inbox.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250220/5bce35a4/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/20250220/5bce35a4/attachment-0001.png>
More information about the gdal-dev
mailing list