ObservableProperty code not being generated #308
|
I'm trying to utilize this toolkit in a WPF 4.7.2 application. I have brought in CommunityToolkit.Mvvm V8.0.0 (preview 4). The I had my main VM inherit from ObservableObject: However, the 'partial' declaration is dim since there is no other partial class. When I mark a field with the [ObservableProperty] attribute there is no matching Public property generated. Nothing shows up in the Analyzers section of References: Is there a limitation around C# or Framework versions? What else can I check? |
Replies: 2 comments 9 replies
|
Just to double check, is the code just not showing up there or is it just not being generated at all? |
|
Moving the ViewModels to a .NET Standard library that uses C# 8.0 enabled the Toolkit Code Generation. |

Moving the ViewModels to a .NET Standard library that uses C# 8.0 enabled the Toolkit Code Generation.