Skip to content

Conversation

@sbomer
Copy link
Member

@sbomer sbomer commented Feb 26, 2021

@ghost
Copy link

ghost commented Feb 26, 2021

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

- use JoinItems task :)
- always set _TrimmerDefaultAction
ReferenceAssemblyPaths="@(ReferencePath)"
RootAssemblyNames="@(TrimmerRootAssembly)"
TrimMode="$(TrimMode)"
DefaultAction="$(_TrimmerDefaultAction)"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should _TrimmerDefaultAction use underscore? This is the only property the developers would need to change to make their apps fully linker, right?

Copy link
Member Author

@sbomer sbomer Mar 1, 2021

Choose a reason for hiding this comment

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

Yes - I would like it to be public - but in the discussions about a similar TrimAllAssemblies opt-in there were concerns about making it too easy to trim everything. I restarted the discussion in #16140.

@sbomer sbomer merged commit b8b3f10 into dotnet:master Mar 1, 2021
sbomer added a commit to dotnet/installer that referenced this pull request Mar 2, 2021
dotnet-maestro bot added a commit to dotnet/installer that referenced this pull request Mar 2, 2021
[master] Update dependencies from dotnet/sdk
- Coherency Updates:
  - Microsoft.NET.ILLink.Tasks: from 6.0.100-preview.2.21124.3 to 6.0.100-preview.2.21125.1 (parent: Microsoft.NET.Sdk)

 - Don't set IsTrimmable on netcoreapp in 6.0

These assemblies now opt into trimming using AssemblyMetadata:
dotnet/runtime#48428.

The SDK side of the change was made in dotnet/sdk#16094.

For more context, see
https://github.com/mono/linker/blob/main/docs/design/trimmed-assemblies.md#net-6.
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.

4 participants