Please help me figure out the Linker feature

IreneZaniIreneZani ITMember

Hi everyone,

my app is using Json.NET, and enabling the linker with the "Link-All" option causes the loss of my Entities' constructor and calling a parse method obviously causes a crash. So I decided to specify [Foundation.Preserve(AllMembers = true)] on each Entity class (there's 4 of them, some have a few dozen of string fields, others are minuscule).
This way everything works fine, problem is, now my app size grew from about 30 MiB to over 90 MiB.

Would someone explain why? I must be doing something utterly wrong here.

Thanks in advance, and have a great one.

Sign In or Register to comment.