Replies: 1 comment
-
From memory, there is some weirdness about source generators interacting with other source generators. I don't think there is any official work around for it. The best you could probably do in this situation would be to manually implement the observable properties yourself. It's fairly simple though, just a lot more verbose. EG something like this (I don't know the MVVM method names off the top of my head, so you may need to fix this): public string GamePath { get => _gamePath; set=> SetAndRaisePropertyChangeEvent(ref _gamePath, value); } |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying AOT for the first time, and I checked the AOT JSON instantiation method from AI and Microsoft's official website. They asked me to create a context, but it doesn't seem to work properly with ObservableProperty
It seems that the automatically generated properties of ObservableProperty cannot be serialized. The information written will be {"Test":"This is a test"}
Beta Was this translation helpful? Give feedback.
All reactions