Annotate framework assemblies as trimmable (#48428)
authorSven Boemer <sbomer@gmail.com>
Fri, 19 Feb 2021 17:27:41 +0000 (09:27 -0800)
committerGitHub <noreply@github.com>
Fri, 19 Feb 2021 17:27:41 +0000 (09:27 -0800)
commit09a1256820636d9d3d9f12936f8ba9dbc3abe395
tree210b67257967cbb0daf60b65ad9ee7124fb01568
parente53803d68f33bffd09e81ecf65a108e25a0ca0f2
Annotate framework assemblies as trimmable (#48428)

* Annotate framework assemblies as trimmable

This will opt them into trimming with the behavior described at https://github.com/mono/linker/blob/main/docs/design/trimmed-assemblies.md#assemblymetadataistrimmable-true.

* Add a condition to let projects opt out

A project just needs to set <SetIsTrimmable>false</SetIsTrimmable>, and
it won't get the trimmable metadata.

I also got rid of the SkipFrameworkAssemblyMetadata check since I don't
think the IsTrimmable metadata should be tied to whether we are building
a framework assembly, and this property was unused as far as I could tell.
eng/versioning.targets
src/libraries/System.Private.CoreLib/src/Internal/AssemblyAttributes.cs