-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
EnableRequestDelegateGenerator by default for PublishTrimmed apps #48416
Comments
YESSSS |
This is a pretty big step. We'll probably want to look at this after things like the following edge case: #47339 |
Agreed. It might be worth comparing what breaks outright today without the source generator with trimming on. @eerhardt does ASP.NET Core do aggressive trimming by default now in .NET 8 (Not partial)? If yes, then it's worth exploring this change. If no, then maybe we shouldn't make this change in .NET 8. |
Not yet. That is being decided with dotnet/sdk#30059. There are efforts being made to push towards "full" trimming though. The current usage of Overall, we are trying to get to an understandable and maintainable place with regards to trimming. Using partial trimming and ignoring the trim warnings is not that place. See also dotnet/runtime#84378 |
We should do this only if TrimMode is full. |
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
Currently ASP.NET apps have the following source generators enabled by default when
PublishAot=true
:These source generators are also valuable for
PublishTrimmed=true
apps that don't use Native AOT because they eliminate trim warnings in your app.Describe the solution you'd like
We should enable these source generators by default when
PublishTrimmed=true
. Just like we do for PublishAot.Additional context
No response
The text was updated successfully, but these errors were encountered: