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

Change linker to trim everything by default in 7.0 #26246

Merged
merged 11 commits into from
Jul 9, 2022
Merged

Conversation

agocke
Copy link
Member

@agocke agocke commented Jun 25, 2022

The new trimmer default will be to trim everything, which will be represented
by a new TrimMode called 'full'. The previous behavior will be TrimMode
'partial'. Other options for TrimMode, and the TrimmerDefaultAction property,
are deprecated.

All scenarios where trimming is enabled by default (Blazor WASM, Xamarin) will
be expected to opt-in to the previous behavior using TrimMode=partial. Console
apps will use the new Full behavior in net7.0, unless otherwise specified.

The new trimmer default will be to trim everything, which will be represented
by a new TrimMode called 'full'. The previous behavior will be TrimMode
'partial'. Other options for TrimMode, and the TrimmerDefaultAction property,
are deprecated.
@agocke
Copy link
Member Author

agocke commented Jun 25, 2022

Counterpart to dotnet/linker#2856

@agocke agocke requested a review from sbomer June 25, 2022 02:26
Copy link
Member

@sbomer sbomer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a few nits. Thanks a lot!

@agocke agocke requested a review from vijayrkn as a code owner June 29, 2022 01:48
agocke and others added 6 commits June 28, 2022 18:51
…707.1

Microsoft.NET.ILLink.Analyzers , Microsoft.NET.ILLink.Tasks
 From Version 7.0.100-1.22354.1 -> To Version 7.0.100-1.22357.1
…707.2

Microsoft.NET.ILLink.Analyzers , Microsoft.NET.ILLink.Tasks
 From Version 7.0.100-1.22354.1 -> To Version 7.0.100-1.22357.2
@agocke
Copy link
Member Author

agocke commented Jul 7, 2022

Just updated to bring in changes from #26472

@agocke agocke merged commit 83a2f2c into dotnet:main Jul 9, 2022
@agocke agocke deleted the trimmode branch July 9, 2022 20:16
radical added a commit to radical/runtime that referenced this pull request Jul 15, 2022
radical added a commit to dotnet/runtime that referenced this pull request Jul 15, 2022
…der (#72234)

.. `TrimMode=link`.

The `TrimMode` values changed in dotnet/sdk#26246 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants