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
Looks like the OberservableValidator can't be used with AOT enabled. I get the linker warning when compiling my Maui app with Net9
warning IL2026: Using member 'CommunityToolkit.Mvvm.ComponentModel.ObservableValidator.ObservableValidator()' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. The type of the current instance cannot be statically discovered.
What is the best way to work around this?
I searched everywhere but I haven't stumbled across a good hint.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Looks like the OberservableValidator can't be used with AOT enabled. I get the linker warning when compiling my Maui app with Net9
warning IL2026: Using member 'CommunityToolkit.Mvvm.ComponentModel.ObservableValidator.ObservableValidator()' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. The type of the current instance cannot be statically discovered.
What is the best way to work around this?
I searched everywhere but I haven't stumbled across a good hint.
Beta Was this translation helpful? Give feedback.
All reactions