Skip to content

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

@forkiesassds

Description

@forkiesassds

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions