roubachof / Sharpnado.TaskLoaderView

Free yourself from IsBusy=true! The `TaskLoaderView` is a UI component that handles all your UI loading state (Loading, Error, Result, Notification), and removes all the pain of async loading from your view models (try catch / async void / IsBusy / HasErrors / base view models / ...) thanks to its brother the `TaskLoaderNotifier`.
MIT License
239 stars 14 forks source link

Build with .NET MAUI #14

Closed naaeef closed 1 year ago

naaeef commented 1 year ago

Platform:

Describe the bug As soon as I add the NuGet package (v. 2.5.1) to a new .NET MAUI project with the default template, the app does not compile anymore for iOS or Android.

To Reproduce Steps to reproduce the behavior (see also attached Reproduction sample.zip):

  1. Create a new .NET MAUI project
  2. Add NuGet Sharpnado.TaskLoaderView, version 2.51
  3. Build project for Android or iOS
  4. See error

Exceptions

1>App.xaml : error :  : XamlC error XFC0000 : Cannot resolve type "Application".
1>App.xaml : error :  : XamlC error XFC0000 : Cannot resolve type "Application".
1>AppShell.xaml : error :  : XamlC error XFC0000 : Cannot resolve type "Shell".
1>AppShell.xaml : error :  : XamlC error XFC0000 : Cannot resolve type "Shell".
1>MainPage.xaml : error :  : XamlC error XFC0000 : Cannot resolve type "ContentPage".
1>MainPage.xaml : error :  : XamlC error XFC0000 : Cannot resolve type "ContentPage".
1>Resources\Styles\Colors.xaml : error :  : XamlC error XFC0000 : Cannot resolve type "ResourceDictionary".
1>Resources\Styles\Colors.xaml : error :  : XamlC error XFC0000 : Cannot resolve type "ResourceDictionary".
1>Resources\Styles\Styles.xaml : error :  : XamlC error XFC0000 : Cannot resolve type "ResourceDictionary".
1>Resources\Styles\Styles.xaml : error :  : XamlC error XFC0000 : Cannot resolve type "ResourceDictionary".
roubachof commented 1 year ago

You are adding the wrong package, you need to add the maui flavor. I added an installation section to make it clearer: https://github.com/roubachof/Sharpnado.TaskLoaderView#maui

naaeef commented 1 year ago

Thank you for your help!