ClassiCube / MCGalaxy

A Minecraft Classic / ClassiCube server software
GNU General Public License v3.0
176 stars 83 forks source link

Binaries for .NET 6+ fail to run due to self-contained binary trimming #796

Open forkiesassds opened 8 months ago

forkiesassds commented 8 months ago

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.
forkiesassds commented 7 months ago

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.

2024-04-08error.log