MCGalaxy
MCGalaxy copied to clipboard
Binaries for .NET 6+ fail to run due to self-contained binary trimming
Due to the way binaries are now built, which is a self-contained, trimmed binary the server fails to properly run due to aforementioned trimming
~/MCGalaxy/$ ./MCGalaxyCLI_dotnet8
Failed to set working directory to '', running in current directory..
(18:32:09) Starting Server
!!!Error (Cannot dynamically create an instance of type 'MCGalaxy.Commands.Moderation.CmdSetRank'. Reason: No parameterless constructor defined.) - See logs/errors/2024-03-31error.log for more details.
After recent commits trimmed binaries do run correctly, however plugins are all broken due to them linking to libraries, namespaces or classes that don't exist within the self-contained binary due to the aforementioned trimming.
(11:33:57) Error loading plugins from plugins/CodenameMagma.dll
!!!Error (Unable to load one or more of the requested types.) - See logs/errors/2024-04-08error.log for more details.