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

C#: Remove whitespace from define constants

Co-authored-by: RedworkDE <[email protected]>
Raul Santos 2 жил өмнө
parent
commit
8f6166bd14

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

@@ -81,6 +81,8 @@
       GODOT4_1;GODOT4_1_OR_GREATER;GODOT4_0_OR_GREATER;
       GODOT4_1_0;GODOT4_1_0_OR_GREATER;
     </GodotDefineConstants>
+    <!-- Ensure the define constants don't contain whitespace (see https://github.com/dotnet/roslyn/issues/58391). -->
+    <GodotDefineConstants>$(GodotDefineConstants.Replace('%0A','').Replace('%0D','').Replace('%09','').Replace(' ',''))</GodotDefineConstants>
 
     <!--
     Define constant to determine the target Godot platform. This includes the