shinyorg / shiny

.NET Framework for Backgrounding & Device Hardware Services (iOS, Android, & Catalyst)
https://shinylib.net
MIT License
1.43k stars 227 forks source link

[Bug]: Setting up Shiny services for MAUI with .Net 8.0 support #1421

Closed PriyaKambleup closed 6 months ago

PriyaKambleup commented 6 months ago

Component/Nuget

Push - Native (Shiny.Push)

What operating system(s) are effected?

Version(s) of Operation Systems

I'm following this https://shinylib.net/ to setup for MAUI. I have Installed packages: Shiny (2.7.3) Shiny.Core(3.2.4) Shiny.Hosting.Maui(3.2.4) Shiny.Push(3.2.4)

I've came across below errors while setting up: Error at line .UseShiny() 'MauiAppBuilder' does not contain a definition for 'UseShiny' and no accessible extension method 'UseShiny' accepting a first argument of type 'MauiAppBuilder' could be found (are you missing a using directive or an assembly reference?)

Error at line builder.Services.AddPush(); 'IServiceCollection' does not contain a definition for 'AddPush' and no accessible extension method 'AddPush' accepting a first argument of type 'IServiceCollection' could be found (are you missing a using directive or an assembly reference?) ProjectName (net8.0), ProjectName (net8.0-windows10.0.19041.0)

MauiProgram.cs

mauiprogram

I am trying to configure Shiny and push notifications for Android(.net 8.0),IOS(.net 8.0) & UWP(.net 8.0). Please help me resolve this issue.

Hosting Model

Steps To Reproduce

Given code sample

Expected Behavior

Project should build without any error.

Actual Behavior

Giving build errors as mentioned above.

aritchie commented 6 months ago

Please read the documentation. Shiny v3 does not support windows. Shiny 2.7.3 also is not to be used with v3

James-McMenamin commented 6 months ago

@aritchie Is there planned support for windows / mac catalyst for any part of the package in the future? Wondering cause getting request from clients to target EVERYTHING now that they are looking at the option for the transitions from xamarin to maui.

aritchie commented 6 months ago

@James-McMenamin Please don't hijack issues like this. Shiny v3 already supports catalyst. Windows is something that is being considered in the future