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
When an application is PublishTrimmed=true and TrimMode=link, and XmlSerializer is deserializing/serializing Types that are in assemblies being trimmed, properties of the serialized Types are being trimmed by the ILLinker.
In order to support XmlSerializer in a fully trimmed app, we would either need to:
Get the ILLinker to support preserving properties recursively on Types
Note: this probably isn't required for 6.0, because Xamarin and Blazor WASM SDKs only trim the "core libraries", and leave any user code untrimmed by default.
The text was updated successfully, but these errors were encountered:
When an application is
PublishTrimmed=true
andTrimMode=link
, and XmlSerializer is deserializing/serializing Types that are in assemblies being trimmed, properties of the serialized Types are being trimmed by the ILLinker.In order to support XmlSerializer in a fully trimmed app, we would either need to:
DynamicallyAccessedMemberKinds.RecursiveProperties
linker#1087Note: this probably isn't required for 6.0, because Xamarin and Blazor WASM SDKs only trim the "core libraries", and leave any user code untrimmed by default.
The text was updated successfully, but these errors were encountered: