-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Add trimming guidance for developers #40902
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
Conversation
|
Just for the information, how many assemblies from aspnetcore are yet to trim? |
|
MANY About |
|
ok. Thanks. I will take a look at one of them and will see how can I contribute to it! :) |
|
Any plans to enable Trim analyzers to catch trim warnings at build time itself. |
|
Maybe. My experience is build analysis doesn't provide many errors. Publishing with ILLinker is the best way to get a complete set of warnings. |
|
meaning is there any discrepancy between the errors that you get from Roslyn analyzers and when you do publish!? |
|
Yes. It's mentioned in the doc. Not enough information is available at build to do a complete analysis. |
|
oh ok. |
|
The analyzer should be significantly more powerful in the latest 7.0 previews. There are still some cases that can only be caught with the linker, but as long as your transitive references are annotated, you should get quite a lot through the analyzer. |
Co-authored-by: Aditya Mandaleeka <[email protected]>
Introduce devs to trimming. Links to general documentation and ASP.NET Core specific content.