Godot Engine – Multi-platform 2D and 3D game engine
C# - Enable Optimize for debug builds
Matt Parker84a0007066d6
diff --git a/modules/mono/glue/GodotSharp/GodotPlugins/GodotPlugins.csproj b/modules/mono/glue/GodotSharp/GodotPlugins/GodotPlugins.csprojindex 4b7a24ffe7a..9eaae9ff5e3 100644--- a/modules/mono/glue/GodotSharp/GodotPlugins/GodotPlugins.csproj+++ b/modules/mono/glue/GodotSharp/GodotPlugins/GodotPlugins.csproj@@ -5,6 +5,7 @@<LangVersion>14</LangVersion><Nullable>enable</Nullable><AllowUnsafeBlocks>true</AllowUnsafeBlocks>+ <Optimize>true</Optimize><!-- To generate the .runtimeconfig.json file--><EnableDynamicLoading>true</EnableDynamicLoading>diff --git a/modules/mono/glue/GodotSharp/GodotSharp/GodotSharp.csproj b/modules/mono/glue/GodotSharp/GodotSharp/GodotSharp.csprojindex ee29cf0b556..812a7dc2f02 100644--- a/modules/mono/glue/GodotSharp/GodotSharp/GodotSharp.csproj+++ b/modules/mono/glue/GodotSharp/GodotSharp/GodotSharp.csproj@@ -10,6 +10,7 @@<DocumentationFile>$(OutputPath)/$(AssemblyName).xml</DocumentationFile><EnableDefaultItems>false</EnableDefaultItems><AllowUnsafeBlocks>true</AllowUnsafeBlocks>+ <Optimize>true</Optimize><AnalysisMode>Recommended</AnalysisMode></PropertyGroup>diff --git a/modules/mono/glue/GodotSharp/GodotSharpEditor/GodotSharpEditor.csproj b/modules/mono/glue/GodotSharp/GodotSharpEditor/GodotSharpEditor.csprojindex d923638340a..5ca68e38b63 100644--- a/modules/mono/glue/GodotSharp/GodotSharpEditor/GodotSharpEditor.csproj+++ b/modules/mono/glue/GodotSharp/GodotSharpEditor/GodotSharpEditor.csproj@@ -9,6 +9,7 @@<DocumentationFile>$(OutputPath)/$(AssemblyName).xml</DocumentationFile><EnableDefaultItems>false</EnableDefaultItems><AllowUnsafeBlocks>true</AllowUnsafeBlocks>+ <Optimize>true</Optimize></PropertyGroup><PropertyGroup><Description>Godot C# Editor API.</Description>