From 043f264604107e3cf1e558537078d19882ebfbac Mon Sep 17 00:00:00 2001 From: crazytuzi Date: Thu, 28 May 2026 12:55:54 +0800 Subject: [PATCH] bUseRelease --- Mono.Build.cs | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/Mono.Build.cs b/Mono.Build.cs index f975eb8..c95c9ff 100644 --- a/Mono.Build.cs +++ b/Mono.Build.cs @@ -15,8 +15,11 @@ public class Mono : ModuleRules "DOTNET_PATCH_VERSION=1" }); - var bIsDebug = Target.Configuration == UnrealTargetConfiguration.Debug || - Target.Configuration == UnrealTargetConfiguration.DebugGame; + var bUseRelease = true; + + var bIsDebug = !bUseRelease && + (Target.Configuration == UnrealTargetConfiguration.Debug || + Target.Configuration == UnrealTargetConfiguration.DebugGame); var MonoConfiguration = bIsDebug ? "Debug" : "Release"; @@ -56,20 +59,13 @@ public class Mono : ModuleRules PublicSystemLibraries.Add("msvcrtd.lib"); } - RuntimeDependencies.Add( - Target.bIsEngineInstalled ? "$(BinaryOutputDir)/coreclr.dll" : "$(TargetOutputDir)/coreclr.dll", + RuntimeDependencies.Add("$(BinaryOutputDir)/coreclr.dll", Path.Combine(PlatformLibraryPath, "coreclr.dll")); - RuntimeDependencies.Add( - Target.bIsEngineInstalled - ? "$(BinaryOutputDir)/System.IO.Compression.Native.dll" - : "$(TargetOutputDir)/System.IO.Compression.Native.dll", + RuntimeDependencies.Add("$(BinaryOutputDir)/System.IO.Compression.Native.dll", Path.Combine(PlatformLibraryPath, "System.IO.Compression.Native.dll")); - RuntimeDependencies.Add( - Target.bIsEngineInstalled - ? "$(BinaryOutputDir)/System.Globalization.Native.dll" - : "$(TargetOutputDir)/System.Globalization.Native.dll", + RuntimeDependencies.Add("$(BinaryOutputDir)/System.Globalization.Native.dll", Path.Combine(PlatformLibraryPath, "System.Globalization.Native.dll")); var Files = GetFiles(Path.Combine(PlatformLibraryPath, "net"));