Skip to content

NativeAOT and Trimming - Implications or best practices for organizing dependencies? #102534

Answered by MichalStrehovsky
csturm83 asked this question in Q&A
Discussion options

You must be logged in to vote

Assembly boundaries could matter with <TrimMode>partial</TrimMode>. In this mode, that is not preferred, but some workloads like Blazor WASM/MAUI default to it for historical reasons, any assembly that wasn't marked <IsTrimmable>true</IsTrimmable> in the library project file would be kept unconditionally. There could be differences in TrimMode=partial if some of the new assemblies get marked IsTrimmable, but not others. Otherwise it's all the same.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MichalStrehovsky
Comment options

Answer selected by csturm83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants