❔ [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
8 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
WhiteBlackGoose
WhiteBlackGooseOP3y ago
yes it's gonna be distribured
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
WhiteBlackGoose
WhiteBlackGooseOP3y ago
Using StripSymbols got it to 11M btw
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
WhiteBlackGoose
WhiteBlackGooseOP3y ago
33 M
𝓣𝓱𝓪𝓻𝓷𝓮𝔂
I don't know if it can suit your needs, but I remember using an exe compressor which reduced the executable size by 95% (i didn't make big projects though). The most effective one was mpress I did use it to obfuscate too (easily deobfuscated, but very effective for file size)
Accord
Accord3y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server