diff --git a/src/Recyclarr.Gui/CompositionRoot.cs b/src/Recyclarr.Gui/CompositionRoot.cs index 2218c775..53cacc7a 100644 --- a/src/Recyclarr.Gui/CompositionRoot.cs +++ b/src/Recyclarr.Gui/CompositionRoot.cs @@ -1,7 +1,7 @@ using System.IO.Abstractions; using Autofac; using AutofacSerilogIntegration; -using Recyclarr.TrashLib.Startup; +using Recyclarr.Platform; namespace Recyclarr.Gui; diff --git a/src/Recyclarr.Gui/GlobalUsings.cs b/src/Recyclarr.Gui/GlobalUsings.cs new file mode 100644 index 00000000..956abca2 --- /dev/null +++ b/src/Recyclarr.Gui/GlobalUsings.cs @@ -0,0 +1,2 @@ +global using Serilog; +global using System.IO.Abstractions; diff --git a/src/Recyclarr.Gui/Program.cs b/src/Recyclarr.Gui/Program.cs index f08c1050..3b6d837b 100644 --- a/src/Recyclarr.Gui/Program.cs +++ b/src/Recyclarr.Gui/Program.cs @@ -1,14 +1,13 @@ // [CA1506] '
$' is coupled with '54' different types from '34' different namespaces. Rewrite or refactor the code // to decrease its class coupling below '41'. -#pragma warning disable CA1506 - -using System.IO.Abstractions; using Autofac.Extensions.DependencyInjection; using MudBlazor.Services; using Recyclarr.Gui; -using Recyclarr.TrashLib.Startup; -using Serilog; +using Recyclarr.Platform; + +#pragma warning disable CA1506 + var builder = WebApplication.CreateBuilder(args); diff --git a/src/Recyclarr.Gui/Recyclarr.Gui.csproj b/src/Recyclarr.Gui/Recyclarr.Gui.csproj index 32153d2d..781e2408 100644 --- a/src/Recyclarr.Gui/Recyclarr.Gui.csproj +++ b/src/Recyclarr.Gui/Recyclarr.Gui.csproj @@ -1,9 +1,7 @@ - - @@ -12,13 +10,13 @@ + + + - - - + -