diff --git a/osx/gdal-makefile b/osx/gdal-makefile index b5be5deb4..a47c0c9ea 100644 --- a/osx/gdal-makefile +++ b/osx/gdal-makefile @@ -132,9 +132,9 @@ configure_gdal: -DGDAL_CSHARP_TESTS=OFF \ -DGDAL_CSHARP_BUILD_NUPKG=OFF \ -DBUILD_PYTHON_BINDINGS=OFF \ - -DBUILD_CSHARP_BINDINGS=OFF \ - -DCSHARP_LIBRARY_VERSION=net$(DOTNET_VERSION) \ - -DCSHARP_APPLICATION_VERSION=net$(DOTNET_VERSION) \ + -DBUILD_CSHARP_BINDINGS=ON \ + -DCSHARP_LIBRARY_VERSION=$(GDAL_CSHARP_VERSION) \ + -DCSHARP_APPLICATION_VERSION=$(GDAL_CSHARP_VERSION) \ -DBUILD_JAVA_BINDINGS=OFF \ -DBUILD_SHARED_LIBS=ON \ -DSQLite3_INCLUDE_DIR=$(VCPKG_INSTALLED_DYNAMIC)/include \ diff --git a/shared/GdalCore.opt b/shared/GdalCore.opt index 21f1ee2fe..34e9af13e 100644 --- a/shared/GdalCore.opt +++ b/shared/GdalCore.opt @@ -71,6 +71,7 @@ LIBSHARED=$(PACKAGE_BUILD_ROOT)/$(__libshared)/$(RID)/$(__libshared) GDAL_ROOT=$(BUILD_ROOT)/gdal-source ##### Dotnet version for GDAL DOTNET_VERSION=8.0 +GDAL_CSHARP_VERSION=net8.0 ##### SWIG executable and interface BASE_SWIG_=$(GDAL_ROOT)/swig diff --git a/unix/gdal-makefile b/unix/gdal-makefile index 8d4ae5749..117eba808 100644 --- a/unix/gdal-makefile +++ b/unix/gdal-makefile @@ -122,9 +122,9 @@ configure_gdal: -DGDAL_CSHARP_TESTS=OFF \ -DGDAL_CSHARP_BUILD_NUPKG=OFF \ -DBUILD_PYTHON_BINDINGS=OFF \ - -DBUILD_CSHARP_BINDINGS=OFF \ - -DCSHARP_LIBRARY_VERSION=net$(DOTNET_VERSION) \ - -DCSHARP_APPLICATION_VERSION=net$(DOTNET_VERSION) \ + -DBUILD_CSHARP_BINDINGS=ON \ + -DCSHARP_LIBRARY_VERSION=$(GDAL_CSHARP_VERSION) \ + -DCSHARP_APPLICATION_VERSION=$(GDAL_CSHARP_VERSION) \ -DBUILD_JAVA_BINDINGS=OFF \ -DBUILD_SHARED_LIBS=ON \ -DPROJ_INCLUDE_DIR=$(PROJ_BUILD)/include \