-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] mct:EventToCommandBehavior not found in xmlns http://schemas.microsoft.com/dotnet/2022/maui/toolkit #2397
Comments
This comment has been minimized.
This comment has been minimized.
@jamesingreersc Your issue is not related. Here's the relevant excerpt from the Release Notes to fix your issue: |
@brminnick ahhh, release notes :) Thats what I get for updating all nugets at once without reading them. Just tested with the new BindingContext and it's working just fine. |
Do i also have to set the binding context for converters? Or is the breaking change only for behaviors? The release notes only mention behaviors, but i get the error Type toolkit:IsNotNullConverter not found in xmlns http://schemas.microsoft.com/dotnet/2022/maui/toolkit |
@brminnick We're having the same problem here with .NET 8.0.404 with all the MCT converters in debug builds on MacOS, but absolutely fine on Windows. Seems to build fine for MacOS on DevOps in Release with the same SDK and workloads. EDIT: This is with latest 9.x MCT for .NET 8 EDIT2: Seems to be related to linking - if set to 'Link Framework SDKs Only', as our debug project is, we get this error. Disabling linking makes MCT work, but then breaks other stuff in the build. Possibly something changed in the SDK? We were previously using 8.0.101 on MacOS 14.x where this worked, but with 8.0.404 on MacOS 15.x it now fails. EDIT3: Excluding MCT from trimming resolves the issue (FYI @gmwilhelm & @jamesv-7) - add the following to your csproj then make sure to clear your
|
I'm getting thewsamw issue with "EnumToBoolConverter":
Any solution? |
> ```
This actually fixed the issue. Thanks. I'm hoping this is not a band-aide to a much bigger problem in the future. I hope the dev can look into it. |
Adding this fixes the problem on ios, but now i get this when i try to build a release for android:
|
Got it, it has to be
|
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
I am using your Samples project from this GitHub repo because I was having issues with every version of MauiComminutyToolkit since 9.0.3
When I run your sample project i get the following error when I click on any of the following Behaviors. I did not test them all. But these are not working.
Position 25:18. Type mct:EventToCommandBehavior not found in xmlns http://schemas.microsoft.com/dotnet/2022/maui/toolkit
AnimationBehavior
EventToCommandBehavior
MaskedBehavior
In my personal project I'm getting the following error
Type toolkit:StatusBarBehavior not found in xmlns http://schemas.microsoft.com/dotnet/2022/maui/toolkit
Type toolkit:TextCaseConverter not found in xmlns http://schemas.microsoft.com/dotnet/2022/maui/toolkit
Type toolkit:InvertedBoolConverter not found in xmlns http://schemas.microsoft.com/dotnet/2022/maui/toolkit
Type toolkit:EventToCommandBehavior not found in xmlns http://schemas.microsoft.com/dotnet/2022/maui/toolkit
Type toolkit:IntToBoolConverter not found in xmlns http://schemas.microsoft.com/dotnet/2022/maui/toolkit
Type toolkit:IconTintColorBehavior not found in xmlns http://schemas.microsoft.com/dotnet/2022/maui/toolkit
here is my global.json file
{
"sdk": {
"version": "9.0.101",
"rollForward": "latestFeature",
"allowPrerelease": false
}
}
Expected Behavior
I would expect the behaviors and converters to reference correctly.
Steps To Reproduce
Link to public reproduction project repository
https://github.com/jamesv-7/CommunityToolkit-10.0-Issues
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: