While building the unpackaged binaries for Text Grab I couldn’t understand why the build of --self-contained false was not producing EXEs that were any smaller than --self-contained true. Copilot and Claude were not helpful so I did some searching and could not find the answer… until I searched GitHub and found several open issues discussing.
According to this issue https://github.com/dotnet/sdk/issues/52070 the way I was trying to build framework dependent with --self-contained false is no longer supported and instead we should be using --no-self-contained.
Once I updated my build script, my x64 and Arm64 EXEs were the size I expected! Hopefully this helps someone else who was flipping all the different flags trying to find the issue.
Joe
