Closed yowl closed 11 months ago
PublishTrimming is done implicitly by the native AOT compiler (ilc.exe). It does not require an extra step.
If you see PublishTrimming property not behaving as expected, it can be possibly due to msbuild targets in this branch being out of sync with the current .NET SDK.
Is this a similar optimisation to LLVM Link Time Optimisation (LTO)?
From emscripten's web page
https://emscripten.org/docs/optimizing/Optimizing-Code.html
Currently
PublishTrimming
is broken in the NativeAOT-LLVM targets. User reports that possibly this is because it is being done at the wrong stage.