Skip to content

SRE types not linked out #1588

Closed
Closed
@vargaz

Description

@vargaz

To reproduce:

  • Add to HelloWorld.csproj:
    <PublishTrimmed>true</PublishTrimmed>
    <TrimMode>link</TrimMode>
    <SelfContained>true</SelfContained>
    <RuntimeIdentifier>osx-x64</RuntimeIdentifier>
  • Run dotnet publish

Actual result: the SRE types like DynamicMethod,FieldBuilder etc. are still present along with their virtual methods despite
having no constructors left and the runtime doesn't construct them either.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions