diff --git a/SightKeeper.Avalonia/Setup/ServicesBootstrapper.cs b/SightKeeper.Avalonia/Setup/ServicesBootstrapper.cs index 832a1f06..1c039642 100644 --- a/SightKeeper.Avalonia/Setup/ServicesBootstrapper.cs +++ b/SightKeeper.Avalonia/Setup/ServicesBootstrapper.cs @@ -10,6 +10,7 @@ using SightKeeper.Data.Binary.Services; using SightKeeper.Domain.Model.DataSets; using SightKeeper.Domain.Model.DataSets.Screenshots; +using SixLabors.ImageSharp.PixelFormats; using GamesDataAccess = SightKeeper.Application.Games.GamesDataAccess; namespace SightKeeper.Avalonia.Setup; @@ -29,7 +30,7 @@ public static void Setup(ContainerBuilder builder) builder.RegisterType(); builder.RegisterType().SingleInstance(); builder.RegisterType().As(); - builder.RegisterType(); + builder.RegisterType>().As(); } private static void SetupBinarySerialization(ContainerBuilder builder) diff --git a/SightKeeper.Avalonia/Setup/WindowsBootstrapper.cs b/SightKeeper.Avalonia/Setup/WindowsBootstrapper.cs index f2ff5ca2..70ce8ecd 100644 --- a/SightKeeper.Avalonia/Setup/WindowsBootstrapper.cs +++ b/SightKeeper.Avalonia/Setup/WindowsBootstrapper.cs @@ -1,7 +1,9 @@ #if OS_WINDOWS using Autofac; +using SightKeeper.Application; using SightKeeper.Application.Games; using SightKeeper.Application.Windows; +using SixLabors.ImageSharp.PixelFormats; namespace SightKeeper.Avalonia.Setup; @@ -11,6 +13,7 @@ public static void Setup(ContainerBuilder builder) { builder.RegisterType().As(); builder.RegisterType().As(); + builder.RegisterType().As>(); } } #endif \ No newline at end of file