Merge pull request #78249 from RedworkDE/net-version-define

C#: Add version defines to help users deal with breaking changes
This commit is contained in:
Rémi Verschelde 2023-06-15 15:26:31 +02:00
commit 7f5ef953b7
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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