Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
forkiesassds opened this issue Mar 31, 2024 · 1 comment

Comments

@forkiesassds
Copy link
Contributor

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 forkiesassds changed the title .NET binaries fail to run due to self-contained binary trimming Binaries for .NET 6+ fail to run due to self-contained binary trimming Mar 31, 2024
@forkiesassds
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant