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 System.IO.Abstractions;
using Autofac; using Autofac;
using AutofacSerilogIntegration; using AutofacSerilogIntegration;
using Recyclarr.TrashLib.Startup; using Recyclarr.Platform;
namespace Recyclarr.Gui; 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 // [CA1506] '<Main>$' is coupled with '54' different types from '34' different namespaces. Rewrite or refactor the code
// to decrease its class coupling below '41'. // to decrease its class coupling below '41'.
#pragma warning disable CA1506
using System.IO.Abstractions;
using Autofac.Extensions.DependencyInjection; using Autofac.Extensions.DependencyInjection;
using MudBlazor.Services; using MudBlazor.Services;
using Recyclarr.Gui; using Recyclarr.Gui;
using Recyclarr.TrashLib.Startup; using Recyclarr.Platform;
using Serilog;
#pragma warning disable CA1506
var builder = WebApplication.CreateBuilder(args); var builder = WebApplication.CreateBuilder(args);

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

Loading…
Cancel
Save