C
C#15mo 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
Daltz33315mo ago
Yep, I just saw that after scouring the GitHub issues lol
Denis
Denis15mo ago
Consider closing this issue with /close if the issue is resolved