Use dependency injection (and Scrutor) to register instead of Autofac #674
DanElliott
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Use the template
dotnet new clean-arch
Make the following changes, also seen here DanElliott/CleanArchitecture
Directory.Packages.props
src/CleanArchitecture.Core/CleanArchitecture.Core.csproj
<Project Sdk="Microsoft.NET.Sdk"> <Sdk Name="Microsoft.Build.CentralPackageVersions" Version="2.1.3" /> <ItemGroup> <PackageReference Include="Ardalis.GuardClauses" /> <PackageReference Include="Ardalis.Result" /> <PackageReference Include="Ardalis.SharedKernel" /> <PackageReference Include="Ardalis.SmartEnum" /> <PackageReference Include="Ardalis.Specification" /> - <PackageReference Include="Autofac" /> <PackageReference Include="MediatR" /> <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" /> </ItemGroup> </Project>
src/CleanArchitecture.Core/DependencyInjection.cs
src/CleanArchitecture.Infrastructure/CleanArchitecture.Infrastructure.csproj
src/CleanArchitecture.Infrastructure/DependencyInjection.cs
src/CleanArchitecture.Web/Program.cs
Beta Was this translation helpful? Give feedback.
All reactions