.NET6+ allows trimming which should reduce size of files significantly (for comparison, .net48 binaries are 100kb vs .net6+ are 25mb+) 