refactor: Fix Recyclarr.Gui project

pull/231/head
Robert Dailey 1 year ago
parent a4cfa4706d
commit 4a5e42eb93

@ -1,7 +1,7 @@
using System.IO.Abstractions;
using Autofac;
using AutofacSerilogIntegration;
using Recyclarr.TrashLib.Startup;
using Recyclarr.Platform;
namespace Recyclarr.Gui;

@ -0,0 +1,2 @@
global using Serilog;
global using System.IO.Abstractions;

@ -1,14 +1,13 @@
// [CA1506] '<Main>$' 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);

@ -1,9 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<ItemGroup>
<Using Remove="Microsoft.Extensions.Logging" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Autofac" />
<PackageReference Include="Autofac.Extensions.DependencyInjection" />
@ -12,13 +10,13 @@
<PackageReference Include="JetBrains.Annotations" />
<PackageReference Include="MudBlazor" />
<PackageReference Include="ReactiveUI.Blazor" />
<PackageReference Include="Serilog" />
<PackageReference Include="Serilog.AspNetCore" />
<PackageReference Include="Serilog.Sinks.File" />
<PackageReference Include="TestableIO.System.IO.Abstractions" />
<PackageReference Include="TestableIO.System.IO.Abstractions.Wrappers" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Recyclarr.Common\Recyclarr.Common.csproj" />
<ProjectReference Include="..\Recyclarr.TrashLib\Recyclarr.TrashLib.csproj" />
<ProjectReference Include="..\Recyclarr.Platform\Recyclarr.Platform.csproj" />
</ItemGroup>
</Project>

Loading…
Cancel
Save