-
Notifications
You must be signed in to change notification settings - Fork 531
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
[trimming] remove $(_AggressiveAttributeTrimming)
by default
#9062
[trimming] remove $(_AggressiveAttributeTrimming)
by default
#9062
Conversation
Fixes: dotnet#9060 This was introduced in 60e983c (.NET 6 timeframe). It is a "private" switch that is no longer recommended.
"PackageSize": 2693653 | ||
"PackageSize": 2714133 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like a Xamarin.Forms (legacy) app is about 77kb bigger and hello world android 20kb bigger.
That seems reasonable if there is concern of something breaking from this setting.
@@ -116,7 +116,6 @@ | |||
<StartupHookSupport Condition="'$(StartupHookSupport)' == ''">false</StartupHookSupport> | |||
<UseNativeHttpHandler Condition=" $(AndroidHttpClientHandlerType.Contains ('System.Net.Http.SocketsHttpHandler')) And '$(UseNativeHttpHandler)' == '' ">false</UseNativeHttpHandler> | |||
<UseNativeHttpHandler Condition="'$(UseNativeHttpHandler)' == ''">true</UseNativeHttpHandler> | |||
<_AggressiveAttributeTrimming Condition="'$(_AggressiveAttributeTrimming)' == ''">true</_AggressiveAttributeTrimming> | |||
<NullabilityInfoContextSupport Condition="'$(NullabilityInfoContextSupport)' == ''">false</NullabilityInfoContextSupport> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jonathanpeppers note that NullabilityInfoContextSupport was removed in dotnet/runtime#103970.
Context: dotnet/runtime#103970 Context: dotnet#9062 (comment) This setting was removed in dotnet/runtime#103970, so it doesn't do anything.
Context: dotnet/runtime#103970 Context: dotnet#9062 (comment) This setting was removed in dotnet/runtime#103970, so it doesn't do anything.
Context: dotnet/runtime#103970 Context: #9062 (comment) This setting was removed in dotnet/runtime#103970, so it doesn't do anything.
* main: [tests] verify trimmer warnings where appropriate (#9076) Bump to jbevain/cecil@8c123e1 (#9078) [trimming] remove `$(NullabilityInfoContextSupport)` (#9069) [build] Bump `$(XABuildToolsVersion)`=35 (#9071) [ci] Move PR build to shared pool (#8854) Use AsyncTask from xamarin-android-tools (#9017) Bump to dotnet/sdk@02c06d398a 9.0.100-preview.7.24351.1 (#9067) [trimming] use public `$(MetricsSupport)` property (#9068) [ci] Update resourceManagement.yml (#9070) Bump to dotnet/android-api-docs@c14203771a (#8992) [trimming] remove `$(_AggressiveAttributeTrimming)` by default (#9062)
Fixes: #9060
This was introduced in 60e983c (.NET 6 timeframe).
It is a "private" switch that is no longer recommended.