New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the assembly trimmable #2460
Labels
Comments
Hi, @kerams. I think it's a very good idea. Unfortunately it involves a large amount of non-trivial work so it might take use a while to get to it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Stripe.net's assembly size is around 1.2MB with the version I am referencing. Since I only use a small portion of the API (checkout creation, webhook events, ....), I enabled trimming on the assembly with
<TrimmableAssembly Include="Stripe.net" />
. With this I get an assembly of just 56KB, but with runtime exceptions when creating a checkout sesssion:The linker obviously removes things that are vital but only accessed via reflection.
Describe the solution you'd like
Make Stripe.net linker-friendly. This will probably require DynamicallyAccessedMembers annotations in a bunch of places.
Describe alternatives you've considered
No response
Additional context
Stripe.net 39.95.0
The text was updated successfully, but these errors were encountered: