Skip to content
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by eth0fox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant