Skip to content
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

Merged
merged 2 commits into from
Jun 28, 2024

Conversation

jonathanpeppers
Copy link
Member

Fixes: #9060

This was introduced in 60e983c (.NET 6 timeframe).

It is a "private" switch that is no longer recommended.

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
Copy link
Member Author

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.

@jonathanpeppers jonathanpeppers marked this pull request as ready for review June 28, 2024 18:00
@dellis1972 dellis1972 merged commit 1f3edc1 into dotnet:main Jun 28, 2024
57 checks passed
@jonathanpeppers jonathanpeppers deleted the _AggressiveAttributeTrimming branch June 28, 2024 18:11
@@ -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>
Copy link
Member

@sbomer sbomer Jun 28, 2024

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.

jonathanpeppers added a commit to jonathanpeppers/xamarin-android that referenced this pull request Jul 1, 2024
Context: dotnet/runtime#103970
Context: dotnet#9062 (comment)

This setting was removed in dotnet/runtime#103970, so it doesn't do anything.
jonathanpeppers added a commit to jonathanpeppers/xamarin-android that referenced this pull request Jul 1, 2024
Context: dotnet/runtime#103970
Context: dotnet#9062 (comment)

This setting was removed in dotnet/runtime#103970, so it doesn't do anything.
jonpryor pushed a commit that referenced this pull request Jul 2, 2024
Context: dotnet/runtime#103970
Context: #9062 (comment)

This setting was removed in dotnet/runtime#103970, so
it doesn't do anything.
grendello added a commit that referenced this pull request Jul 5, 2024
* 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)
@github-actions github-actions bot locked and limited conversation to collaborators Jul 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stop using undocumented attribute trimming
3 participants