You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Shiny;
using Shiny.Notifications;
namespace App {
public static class MauiProgram {
public static MauiApp CreateMauiApp() {
var builder = MauiApp
.CreateBuilder()
.UseMauiApp<App>()
.UseShiny() // <-- add this line (this is important)
.ConfigureFonts(fonts => {
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
});
builder.Services.AddNotifications();
#if DEBUG
builder.Logging.AddDebug();
#endif
return builder.Build();
}
}
}
Expected Behavior
No error
Actual Behavior
Error in AddNotifications line
builder.Services.AddNotifications();
Exception or Log output
Error (active) CS1061 "IServiceCollection" does not contain a definition for "AddNotifications" or an accessible extension method "AddNotifications" that accepts a first argument of type "IServiceCollection" (are you missing a using directive or an assembly reference?) App (net9.0-windows10.0.19041.0) C:
Component/Nuget
Notifications (Shiny.Notifications)
What operating system(s) are effected?
Version(s) of Operation Systems
Hosting Model
Steps To Reproduce
Expected Behavior
No error
Actual Behavior
Error in AddNotifications line
builder.Services.AddNotifications();
Exception or Log output
Error (active) CS1061 "IServiceCollection" does not contain a definition for "AddNotifications" or an accessible extension method "AddNotifications" that accepts a first argument of type "IServiceCollection" (are you missing a using directive or an assembly reference?) App (net9.0-windows10.0.19041.0) C:
Reproducible Code Sample (should be Small, Shiny specific, Compile & Run)
error in builder.Services.AddNotifications();
Code of Conduct
The text was updated successfully, but these errors were encountered: