The .NET MAUI Community Toolkit is a community-created library that contains .NET MAUI Extensions, Advanced UI/UX Controls, and Behaviors to help make your life as a .NET MAUI developer easier
The SelectAllTextBehavior cannot be referenced from a project that runs .NET without a native runtime. Because of the way unit tests run in Maui, it's common to have a version of .NET as the target framework.
You should be able to refer to SelectAllTextBehavior in a net8.0 project target just like all other Behaviors.
Steps To Reproduce
Open SelectAllTextBehaviorTest/SelectAllTextBehaviorTest.sln
Uncomment the Entry.Behavior in Project2/MyControl
Build the solution for a native runtime, I've been using iOS.
The build will fail saying Error: XLS0414: The type 'toolkit:SelectAllTextBehavior' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
The SelectAllTextBehavior cannot be referenced from a project that runs .NET without a native runtime. Because of the way unit tests run in Maui, it's common to have a version of .NET as the target framework.
Based on the initial PR for the docs highlighting the behavior (pun intended) https://github.com/MicrosoftDocs/CommunityToolkit/pull/411#issuecomment-2081680258
Expected Behavior
You should be able to refer to
SelectAllTextBehavior
in anet8.0
project target just like all otherBehaviors
.Steps To Reproduce
Link to public reproduction project repository
https://github.com/TrueMoniker/maui_SelectAllTextBehavior_Test/tree/main
Environment
Anything else?
No response