fix: cleaning up some refactoring bugs
This commit is contained in:
parent
bb0dcd0d86
commit
48362b079d
4 changed files with 33 additions and 11 deletions
|
@ -8,13 +8,13 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Autofac" Version="6.3.0"/>
|
||||
<PackageReference Include="ConsoleTableExt" Version="3.1.9"/>
|
||||
<PackageReference Include="CsvHelper" Version="27.2.1"/>
|
||||
<PackageReference Include="FluentResults" Version="3.3.0"/>
|
||||
<PackageReference Include="Glob" Version="1.1.9"/>
|
||||
<PackageReference Include="Humanizer.Core" Version="2.14.1"/>
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.1"/>
|
||||
<PackageReference Include="Autofac" Version="6.3.0" />
|
||||
<PackageReference Include="ConsoleTableExt" Version="3.1.9" />
|
||||
<PackageReference Include="CsvHelper" Version="27.2.1" />
|
||||
<PackageReference Include="FluentResults" Version="3.3.0" />
|
||||
<PackageReference Include="Glob" Version="1.1.9" />
|
||||
<PackageReference Include="Humanizer.Core" Version="2.14.1" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
|
||||
<PackageReference Include="Roslynator.Analyzers" Version="4.1.0">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
|
@ -27,13 +27,13 @@
|
|||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Serilog" Version="2.10.0"/>
|
||||
<PackageReference Include="SerilogAnalyzer" Version="0.15.0"/>
|
||||
<PackageReference Include="System.CommandLine" Version="[2.0.0-beta3.22114.1,)"/>
|
||||
<PackageReference Include="Serilog" Version="2.10.0" />
|
||||
<PackageReference Include="SerilogAnalyzer" Version="0.15.0" />
|
||||
<PackageReference Include="System.CommandLine" Version="[2.0.0-beta3.22114.1,)" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\MfGames.ToolBuilder\MfGames.ToolBuilder.csproj"/>
|
||||
<ProjectReference Include="..\MfGames.ToolBuilder\MfGames.ToolBuilder.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
18
src/MfGames.ToolBuilder.Tables/ToolBuilderTablesModule.cs
Normal file
18
src/MfGames.ToolBuilder.Tables/ToolBuilderTablesModule.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
using Autofac;
|
||||
|
||||
namespace MfGames.ToolBuilder.Tables;
|
||||
|
||||
/// <summary>
|
||||
/// The Autofac module to pull in the components inside this assembly.
|
||||
/// </summary>
|
||||
public class ToolBuilderTablesModule : Module
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Load(ContainerBuilder builder)
|
||||
{
|
||||
builder
|
||||
.RegisterType<TableToolService>()
|
||||
.AsSelf()
|
||||
.AsImplementedInterfaces();
|
||||
}
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
using Autofac;
|
||||
|
||||
using MfGames.TestSetup;
|
||||
using MfGames.ToolBuilder.Tables;
|
||||
|
||||
namespace MfGames.ToolBuilder.Tests
|
||||
{
|
||||
|
@ -11,6 +12,7 @@ namespace MfGames.ToolBuilder.Tests
|
|||
{
|
||||
base.ConfigureContainer(builder);
|
||||
builder.RegisterModule<ToolBuilderModule>();
|
||||
builder.RegisterModule<ToolBuilderTablesModule>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@ using System.Threading.Tasks;
|
|||
using Autofac;
|
||||
|
||||
using MfGames.ToolBuilder;
|
||||
using MfGames.ToolBuilder.Tables;
|
||||
|
||||
namespace SampleTool
|
||||
{
|
||||
|
@ -20,6 +21,7 @@ namespace SampleTool
|
|||
private static void ConfigureContainer(ContainerBuilder builder)
|
||||
{
|
||||
builder.RegisterModule<SampleToolModule>();
|
||||
builder.RegisterModule<ToolBuilderTablesModule>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue