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

ImageResourceConverter fails to display image - .NET 9 #2354

Open LeoJHarris opened 2 days ago

LeoJHarris commented 2 days ago

Is there an existing issue for this?

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

Current Behavior

Originally posted here to the MAUI repo https://github.com/dotnet/maui/issues/25843 but thinking this is better suited here as it seems to be an issue on the ImageResourceConverter with .NET 9.

Bassically images are not loading correctly with .NET 9 using ImageResourceConverter

Expected Behavior

Images to load correctly using ImageResourceConverter

Steps To Reproduce

Open and run the application and observe one image displays whilst the other does not.

Link to public reproduction project repository

https://github.com/LeoJHarris/ImageNotShowing_Bug.git

Environment

<PackageReference Include="CommunityToolkit.Maui" Version="9.1.1" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.3.2" />
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.10" />

ANDROID 34

Anything else?

Originally posted to MAUI repo, not entirely sure where or why this is happening at the moment so posted there also https://github.com/dotnet/maui/issues/25843

brminnick commented 2 days ago

We don't yet support .NET 9.

Our PR to add .Net 9 support is currently blocked until the MAUI engineering team fixes a bug in .NET MAUI: https://github.com/CommunityToolkit/Maui/pull/2215