© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
21 replies
UnemployedNinja

Reduce File Size

I have a very simple console application written in C#, barely more than a couple megabytes. When I publish my project to a self-contained single-file executable, the file comes out to about 50mb.

What's the easiest way to remove unused dependencies and only publish with what it needs?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

lz4 compressed file size parsing
C#CC# / help
7mo ago
Creating a file with a fixed size
C#CC# / help
4y ago
Best way to limit file size when downloading a url
C#CC# / help
3y ago