Open sbomer opened 5 years ago
Yes, this would definitively be a feature I would like to see. I believe I discussed this with Bri or Daniel last year...
I also would like to be able to use this option. I use LanguageExt (https://github.com/louthy/language-ext) which with PublishReadyToRun
enabled grows to ~70MB and I probably use only a small part.
@jeffschwMSFT should this be tracked here or somewhere else?
https://github.com/dotnet/sdk/pull/3231 flows
IsTrimmable
metadata fromFrameworkRefrence
s to the resolved assets. We could consider doing the same forPackageReference
s to enable users to easily opt in to trimming assets that come from packages. Since the metadata was not originally intended as a customer-facing option, we may want to revisit this to see if it's the right way to expose such an option.From https://github.com/mono/linker/issues/595#issuecomment-498951483:
This would come with the usual caveats: packages with logic that is activated by reflection, or that themselves use reflection, will likely be incompatible with trimming.