It appears that the current way the build task works is somewhat "all or nothing" - either annotate individual methods with [Optimize] or press the big red button and add <DistilAllMethods>.
Turns out the latter completely breaks ILLink on Linux in an otherwise seemingly working application (with what is likely a runaway inlining scenario causing SO).
It would be nice to have a more granular way to choose what to optimize with opt-in and/or opt-out properties in csproj. Alternatively, [Optimize] could be made applicable to assembly instead.
It appears that the current way the build task works is somewhat "all or nothing" - either annotate individual methods with
[Optimize]or press the big red button and add<DistilAllMethods>.Turns out the latter completely breaks ILLink on Linux in an otherwise seemingly working application (with what is likely a runaway inlining scenario causing SO).
It would be nice to have a more granular way to choose what to optimize with opt-in and/or opt-out properties in csproj. Alternatively,
[Optimize]could be made applicable toassemblyinstead.