dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.26k stars 1.76k forks source link

Error to include reference to MAUI Tookit #25937

Closed lperezj closed 2 days ago

lperezj commented 2 days ago

Description

I can´t build if add in XAML the reference to xmlns:xct="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" and include a Behavior

![Image](https://github.com/user-attachments/assets/cb4b964f-04cd-4b2d-b241-67faeda9be13) ### Steps to Reproduce Hi, im trying to migrate from Xamarin.Forms to MAUI my current proyect and i have a problem to migrate the TouchEvents. I did all the steps in https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/ 1. I add the NuGet package 2. I add the code line in CreateBuilder ``` .UseMauiApp() .UseMauiCommunityToolkit(options => { options.SetShouldSuppressExceptionsInConverters(false); options.SetShouldSuppressExceptionsInBehaviors(true); options.SetShouldSuppressExceptionsInAnimations(false); }) ``` 3. I included the reference in XAML ``` ``` But visual studio not display any exception, error or warning in code, but when i try to build the project/solution, throw the exception ### Link to public reproduction project repository _No response_ ### Version with bug 9.0.10 SR1 ### Is this a regression from previous behavior? Not sure, did not test other versions ### Last version that worked well _No response_ ### Affected platforms Android, Windows ### Affected platform versions _No response_ ### Did you find any workaround? _No response_ ### Relevant log output ```shell ```
jfversluis commented 2 days ago

Duplicate of one of these: https://github.com/CommunityToolkit/Maui/issues?q=is%3Aissue%20state%3Aclosed%20XFC0000

This is a Toolkit issue, I think one of the issues in the above query should help you resolve it. If not, please open something on that repository.

jfversluis commented 2 days ago

Additionally: https://github.com/dotnet/maui/issues/9781