Replies: 3 comments
-
adding builder.UseMauiCommunityToolkit(); is required. Alternatively, you can use xmlns with explicit class and assembly |
Beta Was this translation helpful? Give feedback.
-
The root cause is the Linker is removing our library because it thinks you are not using it. The Linker scans C# code looking for references to To ensure var behavior = new EventToCommandBehavior(); |
Beta Was this translation helpful? Give feedback.
-
Closed as answered. |
Beta Was this translation helpful? Give feedback.
-
Is there a preffered way of using community toolkit in a MauiClassLibrary project? I have a module with 3 views and I want to use community toolkit, but I keep getting errors regarding the use of xml namespace. I've found a workaround that if I make a mock extension method and add UseMauiCommunityToolkit line - everything works fine:
It works but I would much prefer not to add useless code inside my module...
Beta Was this translation helpful? Give feedback.
All reactions