Skip to content

Commit 8f6166b

Browse files
raulsntosRedworkDE
andcommitted
C#: Remove whitespace from define constants
Co-authored-by: RedworkDE <10944644+RedworkDE@users.noreply.github.com>
1 parent 217a20a commit 8f6166b

File tree

1 file changed

+2
-0
lines changed
  • modules/mono/editor/Godot.NET.Sdk/Godot.NET.Sdk/Sdk

1 file changed

+2
-0
lines changed

modules/mono/editor/Godot.NET.Sdk/Godot.NET.Sdk/Sdk/Sdk.props

+2
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@
8181
GODOT4_1;GODOT4_1_OR_GREATER;GODOT4_0_OR_GREATER;
8282
GODOT4_1_0;GODOT4_1_0_OR_GREATER;
8383
</GodotDefineConstants>
84+
<!-- Ensure the define constants don't contain whitespace (see https://github.com/dotnet/roslyn/issues/58391). -->
85+
<GodotDefineConstants>$(GodotDefineConstants.Replace('%0A','').Replace('%0D','').Replace('%09','').Replace(' ',''))</GodotDefineConstants>
8486

8587
<!--
8688
Define constant to determine the target Godot platform. This includes the

0 commit comments

Comments
 (0)