uno icon indicating copy to clipboard operation
uno copied to clipboard

CommunityToolkit MVVM ViewModels are not covered by the `MvvmTypeProvider`

Open kazo0 opened this issue 3 weeks ago • 1 comments

Current behavior 🐛

https://github.com/unoplatform/uno/blob/72585d6f5f99619f21eca2cdc20a25b7b55d4c0e/src/SourceGenerators/Uno.UI.SourceGenerators/XamlGenerator/ThirdPartyGenerators/CommunityToolkitMvvm/MvvmTypeProvider.cs

Using a new uno app: dotnet new unoapp -preset recommended -presentation mvvm -o testapp

I see this in the logs:

The Bindable attribute is missing and the type [testapp.Presentation.MainViewModel] is not known by the MetadataProvider. Reflection was used instead of the binding engine and generated static metadata. Add the Bindable attribute to prevent this message and performance issues.

testapp.zip

kazo0 avatar Dec 09 '25 16:12 kazo0

This may be relevant to my issue at unoplatform/uno.extensions#2979 which refers to a similar issue with MVUX selected in the wizard. Please check this for more info. If there are conflicts you can delete my issue or my comment. Thought this would help.

Georgios1999 avatar Dec 09 '25 18:12 Georgios1999