You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
STJ Source Generator bloats the assembly when used with records #58136
Records contains a property EqualityContract of type Type. This leads to the generator generating serializers for many of the reflection related types as for example Type, ConstructorInfo, MethodInfo, Assembly, Module, etc.
Also it would be nice if there was a way to prevent generating metadata for non-public members.
Hi @aromaa, what version of the sdk are you using to reproduce this. Using your reproduction on 6.0.100-rc.1.21415.3 I'm getting the following generated code:
Activity
eiriktsarpalis commentedon Aug 26, 2021
Hi @aromaa, what version of the sdk are you using to reproduce this. Using your reproduction on
6.0.100-rc.1.21415.3I'm getting the following generated code:which on quick inspection doesn't seem to include any properties.
aromaa commentedon Aug 26, 2021
This seems to be fixed on RC builds. I was using
6.0.0-preview.7.21377.19. Doesn't repro with6.0.0-rc.2.21425.6.