Closed
Description
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.