This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository efl.

View the commit online.

commit 90d73f7e4cf0b7d30b5f59bf01e73f3f763fc137
Author: Cedric BAIL <[email protected]>
AuthorDate: Sun Nov 15 12:27:42 2026 -0600

    csharp: read the dotnet SDK major version up to the first dot
    
    The SDK version was read from the first character of the version
    string, so a 10.x SDK came out as 1 and was rejected as "must be at
    least 2.2". Read the text before the first dot instead, and let an SDK
    newer than the ones listed target its own version.
    
    efl_sharp.csproj.in also set DefineConstants twice in a row, once per
    symbol, so the second overwrote the first: on every platform where
    EFL_WIN32 is empty, which is every platform but Windows, the EFL_BETA
    above it was thrown away and a build that asked for the beta API got a
    library compiled without it. The constants accumulate now.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 src/bindings/mono/efl_sharp.csproj.in | 4 ++--
 src/bindings/mono/meson.build         | 9 ++++++---
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/bindings/mono/efl_sharp.csproj.in b/src/bindings/mono/efl_sharp.csproj.in
index 648c15b39b..cf82d57208 100644
--- a/src/bindings/mono/efl_sharp.csproj.in
+++ b/src/bindings/mono/efl_sharp.csproj.in
@@ -20,8 +20,8 @@
   <!--   <DefineConstants>EFL_BETA</DefineConstants> -->
   <!-- </PropertyGroup> -->
   <PropertyGroup>
-    <DefineConstants>@EFL_BETA@</DefineConstants>
-    <DefineConstants>@EFL_WIN32@</DefineConstants>
+    <DefineConstants>$(DefineConstants);@EFL_BETA@</DefineConstants>
+    <DefineConstants>$(DefineConstants);@EFL_WIN32@</DefineConstants>
   </PropertyGroup>
 
   <ItemGroup>
diff --git a/src/bindings/mono/meson.build b/src/bindings/mono/meson.build
index 2fba233a28..21ea796ec9 100644
--- a/src/bindings/mono/meson.build
+++ b/src/bindings/mono/meson.build
@@ -214,9 +214,12 @@ if (get_option('dotnet'))
   message('Found dotnet core version ' + dotnet_version.stdout().strip())
 
   # The major version should be enough for now while we don't have to deal
-  # with minor differences and dotnet core is far from version 10
-  dotnet_major_version = dotnet_version.stdout().strip()[0].to_int()
-  if dotnet_major_version == 8
+  # with minor differences.
+  dotnet_major_version = dotnet_version.stdout().strip().split('.')[0].to_int()
+  if dotnet_major_version > 8
+    dotnet_core_app_version = '@[email protected]'.format(dotnet_major_version)
+    dotnet_standard_version = '2.1'
+  elif dotnet_major_version == 8
     dotnet_core_app_version = '8.0'
     dotnet_standard_version = '2.1'
   elif dotnet_major_version == 7

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to