From 29e205e26f5aec98bf785fa90ccf1f04cbee1694 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Wed, 9 Oct 2024 20:58:51 +1100 Subject: [PATCH] Fix for old mono versions --- MCGalaxy/Modules/Compiling/CompilerBackends.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MCGalaxy/Modules/Compiling/CompilerBackends.cs b/MCGalaxy/Modules/Compiling/CompilerBackends.cs index a3886287d..80a123483 100644 --- a/MCGalaxy/Modules/Compiling/CompilerBackends.cs +++ b/MCGalaxy/Modules/Compiling/CompilerBackends.cs @@ -193,9 +193,9 @@ protected override string GetExecutable() { string root = RuntimeEnvironment.GetRuntimeDirectory(); string[] paths = new string[] { - Path.Combine(root, "csc.exe"), // C# compiler - Path.Combine(root, "mcs.exe"), // old Mono C# compiler - Path.Combine(root, "mcs"), // old Mono C# compiler + Path.Combine(root, "csc.exe"), // C# compiler + Path.Combine(root, @"../bin/mcs"), // old Mono C# compiler + Path.Combine(root, "mcs.exe"), // old Mono C# compiler }; foreach (string path in paths)