-
Notifications
You must be signed in to change notification settings - Fork 741
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 code trim safe #4002
Comments
@danmoseley, any pointers on where to start with this? I would like to give it a try. |
https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/trim-self-contained @eerhardt is there any issue or doc somewhere where we have guidance on working through these things? |
(And, you're welcome to. Perhaps @eerhardt can suggest the easiest code to start with) |
https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/prepare-libraries-for-trimming |
@afroze9 my suggestion is that you do a small piece and offer a PR, rather than try to do it all at once. Maybe just clear the easiest of the warnings. |
Do you still need help on this one? Wouldn't mind giving it a go. |
Yes, the warnings are still there, so we do need help :) |
Part of dotnet#4002 Add DynamicallyAccessedMembers attributes where the warning was found removed IL2091 from NoWarn in Directory.Build.targets
Part of dotnet#4002 Added DynamicallyAccessedMembers attributes where the warning was found removed IL2091 from NoWarn in Directory.Build.targets
Part of dotnet#4002 Added DynamicallyAccessedMembers attributes where the warning was found removed IL2091 from NoWarn in Directory.Build.targets
* Fix IL2091 warnings Part of #4002 Added DynamicallyAccessedMembers attributes where the warning was found removed IL2091 from NoWarn in Directory.Build.targets * Remove more warnings that are no longer necessary. * Remove Memoize with 3 parameters. This code isn't being used. --------- Co-authored-by: Eric Erhardt <[email protected]>
Remove these suppressions and fix the issues.
extensions/Directory.Build.targets
Lines 19 to 20 in e93439f
Then apps using these libraries can trim them down to just what they need.
The text was updated successfully, but these errors were encountered: