Repository navigation
Answered by
eth0fox
Nov 21, 2026
Replies: 1 comment
|
Aha, this actually seems like a docs issue - https://learn.microsoft.com/en-us/dotnet/core/deploying/single-file/overview tells you to use |
0 replies
Answer selected by
eth0fox
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Aha, this actually seems like a docs issue - https://learn.microsoft.com/en-us/dotnet/core/deploying/single-file/overview tells you to use
--self-contained false, which did make me a little suspicious given all the other arguments are-p:Something=true, and if I swap it out for-p:SelfContained=false,(so, in full,dotnet publish -c Release -r win-x64 -p:PublishReadyToRun=true -p:PublishSingleFile=true -p:SelfContained=false), I do actually get a much more reasonable 185kb binary.