Skip to content

Commit

Permalink
Merge pull request #78249 from RedworkDE/net-version-define
Browse files Browse the repository at this point in the history
C#: Add version defines to help users deal with breaking changes
  • Loading branch information
akien-mga committed Jun 15, 2023
2 parents f9e0c64 + 1b466c6 commit 7f5ef95
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions modules/mono/editor/Godot.NET.Sdk/Godot.NET.Sdk/Sdk/Sdk.props
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f5ef95

Please sign in to comment.