C
C#2y ago
Daltz333

✅ MVVM Source Generator not copying attributes

It seems that if you do
[ObservableProperty, JsonIgnore]
private ImageSource _MyBadProperty;
[ObservableProperty, JsonIgnore]
private ImageSource _MyBadProperty;
It doesn't generate the [JsonIgnore] attribute on MyBadProperty, thus causing any serialization to fail since ImageSource throws an exception on attempted serialization. Any ideas of a workaround without just not using source generators?
2 Replies
Daltz333
Daltz333OP2y ago
Yep, I just saw that after scouring the GitHub issues lol
Denis
Denis2y ago
Consider closing this issue with /close if the issue is resolved
Want results from more Discord servers?
Add your server