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

Investigate PublishTrimmed for smaller executable #43

Open
mbrajk opened this issue Jul 29, 2024 · 1 comment
Open

Investigate PublishTrimmed for smaller executable #43

mbrajk opened this issue Jul 29, 2024 · 1 comment
Labels
question Further information is requested software improvement Change that improves the software, but the user's experience remains largely unchanged

Comments

@mbrajk
Copy link
Owner

mbrajk commented Jul 29, 2024

Issue
The .exe that is generated by the build process is around 70MB. Dotnet apps are known to be large but it may be possible to reduce this size by implementing tree trimming using the property on the csproj. Initial results show a size closer to 15MB.

Concerns
Simply turning on PublishTrimmed puts the built application into to a non-working state as Refit and Spectre.Console are both currently unsupported in AOT Trimmed mode. There are potential solutions for Spectre.Console in this thread.

Refit has yet to be investigated.

@mbrajk mbrajk added software improvement Change that improves the software, but the user's experience remains largely unchanged question Further information is requested labels Aug 2, 2024
@mbrajk
Copy link
Owner Author

mbrajk commented Aug 2, 2024

Spectre.Console solution from provided thread appears to work. Not the most ideal solution. Ideal would be for Specture.Console to support trimming but that isn't going to be implemented by me.

Further investigation is still needed on either a solution or a replacement for Refit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested software improvement Change that improves the software, but the user's experience remains largely unchanged
Projects
None yet
Development

No branches or pull requests

1 participant