microspaze / FFImageLoading.Maui

FFImageLoading.Maui - Fast & Furious Image Loading for .NET MAUI
MIT License
104 stars 16 forks source link

Completely Breaks MAUI App Or Fails to Recognize CachedImage control #17

Open pouchbunny opened 6 months ago

pouchbunny commented 6 months ago

Description

Can't even build project after installation or fails to even recognize CachedImage control

Steps to Reproduce

Create new project and run.

Add NuGet package, Using statement in MauiProject.cs, and Use in builder services, then attempts to run

Severity Code Description Project File Line Suppression State Details Error CS0234 The type or namespace name 'MauiWinUIApplication' does not exist in the namespace 'Microsoft.Maui' (are you missing an assembly reference?) MauiApp2 (net8.0-android) X:\AppProjects\MAUI\MauiApp2\MauiApp2\obj\Debug\net8.0-windows10.0.19041.0\win10-x64\Platforms\Windows\App.g.i.cs 40 Active

Strange enough IF you create a new project. Add nuget package and using/use statements and then run. It runs just fine, HOWEVER....

Add xmls statement in XAML. No issues.

Add

Expected Behavior

Project runs normally

Actual Behavior

MauiWinUIApplication is now missing assembly reference among other items like its delegates.

Basic Information

image

image

image

Reproduction Link / Code

microspaze commented 6 months ago

@pouchbunny You use the wrong namespace for CachedImage. It is in FFImageLoading.Maui namespace not FFImageLoading namespace.

1.Install NuGet package: FFImageLoading.Maui NuGet 2.Add .UseFFImageLoading() to your MAUI app builder. 3.Add xmlns:ffimageloading="clr-namespace:FFImageLoading.Maui;assembly=FFImageLoading.Maui" to your MAUI Xaml page references. 4.Add </ffimageloading:CachedImage> to display image.

Besides you need to update the FFImageLoading.Maui lib to the latest 1.1.0 which fixed a crash bug for windows platform.