-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
how can we trim dll unused? #78633
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to this area: @agocke, @sbomer, @vitek-karas Issue DetailsIs there an existing issue for this?
Describe the bugI have found some dll like diagnostic should not used in product release: Expected Behaviorno loading these assembly, or can config some assembly not loading Steps To ReproduceNo response Exceptions (if any)No response .NET Version6.0 blazor webasembly Anything else?No response
|
These dlls contains functionality like ability to print out stack trace (used when you call For the most part developers want these features even in their published applications so that it's easier to diagnose issues which happen in production. Some of these can be disabled via properties: If you just change the property values the functionality will be disabled, but the code will still be there (along with the above dlls). To remove most of the associated code you would also need to trim the application: https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/trim-self-contained Note that even in trimmed application it may be that some of these dlls will still be there (although probably smaller), it depends which APIs the application uses and how. |
Is there an existing issue for this?
Describe the bug
I have found some dll like diagnostic should not used in product release:
Expected Behavior
no loading these assembly, or can config some assembly not loading
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
6.0 blazor webasembly
Anything else?
No response
The text was updated successfully, but these errors were encountered: