2
0
Эх сурвалжийг харах

C#: Add version defines to help users deal with breaking changes

RedworkDE 2 жил өмнө
parent
commit
1b466c6298

+ 7 - 2
modules/mono/editor/Godot.NET.Sdk/Godot.NET.Sdk/Sdk/Sdk.props

@@ -74,8 +74,13 @@
 
   <!-- Godot DefineConstants. -->
   <PropertyGroup>
-    <!-- Define constant to identify Godot builds. -->
-    <GodotDefineConstants>GODOT</GodotDefineConstants>
+    <!-- Define constants to identify Godot builds and versions. -->
+    <GodotDefineConstants>
+      GODOT;
+      GODOT4;GODOT4_OR_GREATER;
+      GODOT4_1;GODOT4_1_OR_GREATER;GODOT4_0_OR_GREATER;
+      GODOT4_1_0;GODOT4_1_0_OR_GREATER;
+    </GodotDefineConstants>
 
     <!--
     Define constant to determine the target Godot platform. This includes the