Hello tamas I am trying to build with these options
<arg value="-DBUILD_CSHARP_BINDINGS=ON"/><!-- C# Bindings--> <arg value="-DCSHARP_LIBRARY_VERSION=netstandard2.0"/> <arg value="-DCSHARP_APPLICATION_VERSION=netstandard2.0"/> However, I am getting errors wrt to finding the executables like OGRInfo.exe etc among others [INFO] [exec] -- Installing: C:/workarea/Source/gdal/build_Debug/install/share/csharp/OgrInfo/OgrInfo.deps.json [INFO] [exec] CMake Error at swig/csharp/cmake_install.cmake:152 (file): [INFO] [exec] file INSTALL cannot find [INFO] [exec] "C:/workarea/Source/gdal/build_Debug/swig/csharp/OgrInfo/OgrInfo.exe": My question : If I set CMAKE OPTIONS as shown to "netstandard2.0" then do i expect to see the EXEs getting generated as I understand that .NET STANDARD is just specification and not any runtime. Will these make any difference? Best regards, ________________________________ From: Tamas Szekeres <szeker...@gmail.com> Sent: Thursday, March 6, 2025 5:12 PM To: Parveen Sharma <sharma1...@outlook.com> Cc: Michał Kowalczuk via gdal-dev <gdal-dev@lists.osgeo.org> Subject: Re: [gdal-dev] Can we build CSharp Bindings in GDAL v3.9.3 or later with DOT NET FRAMEWORK 4.8? 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<mailto: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 [cid:ii_1956ab8f04dcb971f161] 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<mailto: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