瀏覽代碼

Merge pull request #78466 from raulsntos/dotnet/define-constants-without-whitespace

C#: Remove whitespace from define constants
Rémi Verschelde 2 年之前
父節點
當前提交
af08b17f97
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      modules/mono/editor/Godot.NET.Sdk/Godot.NET.Sdk/Sdk/Sdk.props

+ 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