✅ Disable trimming for certain assemblies
Hello.
There's a way to disable code trimming for certain assemblies?
I just want to AOT-Compile my application, but trim only CLR assemblies and not the principal assembly. My code does use a lot of dynamic code, so it would be trimmed on an AOT-compilation.
Thank you.
4 Replies
Well I think i got it working with
you can use
<TrimMode>partial</TrimMode>
to disable trimming for all assemblies which are not marked as trimmable
it might be easier than going through and testing and rooting each further assembly which does not workbut will it work for AOT compilation?