© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
10 replies
WhiteBlackGoose

❔ [SOLVED] Reducing the size of an executable

hello there
what are my options to reduce the size of an executable? Here's how I publish it
dotnet publish \
-r $1 \
-c release \
-o ./publish-output \
-p:SelfContained=true \
-p:PublishAot=true \
-p:PublishTrimmed=true
dotnet publish \
-r $1 \
-c release \
-o ./publish-output \
-p:SelfContained=true \
-p:PublishAot=true \
-p:PublishTrimmed=true
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

❔ Reducing commands
C#CC# / help
3y ago
[SOLVED] Storing pointers in an array instead of the objects themselves?
C#CC# / help
3y ago
❔ Reducing networking syscalls
C#CC# / help
4y ago
Build single executable
C#CC# / help
16mo ago