CommunityToolkit / Maui

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
https://learn.microsoft.com/dotnet/communitytoolkit/maui
MIT License
2.28k stars 404 forks source link

[BUG] Toast Faults on Windows #2356

Open david-maw opened 12 hours ago

david-maw commented 12 hours ago

Is there an existing issue for this?

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

In .NET 9 invoking Toast on Android works fine but doing it on Windows throws an exception with a multi line error of:

Element not found.

Element not found.

Expected Behavior

A Toast notification rather than an exception on Windows.

Steps To Reproduce

Clone the repo then build and run the app on Windows, Once it is running click the button and you should see the fault.

Link to public reproduction project repository

https://github.com/david-maw/Community-Toast.git

Environment

- .NET MAUI CommunityToolkit:9.1.1
- OS:Windows 11
- .NET MAUI: 9.0.10

Anything else?

No response

brminnick commented 12 hours ago

We do not yet support .NET 9.

We are blocked from merging any PRs until we are able to merge our .NET 9 PR which is currently blocked by a bug in .NET MAUI.

Once the MAUI engineering team resolves this bug, we will be unblocked and can resume merging PRs for the Community Toolkit: https://github.com/dotnet/maui/issues/25871

This Issue is fixed by https://github.com/CommunityToolkit/Maui/pull/2215

david-maw commented 11 hours ago

Thanks, and sorry, I hadn't realized that .NET 9 wasn't supported yet.