ardalis / CleanArchitecture

Clean Architecture Solution Template: A starting point for Clean Architecture with ASP.NET Core
MIT License
15.18k stars 2.65k forks source link

Update Sample to Latest Version of Template #723

Open ardalis opened 3 months ago

ardalis commented 3 months ago

Remove Autofac, etc.

marcotello commented 3 months ago

Hi @ardalis. I can go for it.

ardalis commented 3 months ago

@marcotello go for it, thanks!

vodicka2000 commented 2 months ago

Hi, thanks for your excellent job, it is the perfect study material! One question, please: Was there any specific reason why Autofac has been replaced by Microsoft native DI? I understand that it is better to have the smallest amount of external libraries to be dependent on, but Autofac has nowadays more useful features compared to native DI as far as I know. For small projects native DI is sufficient, but Clean architecture is supposed to be used in bigger projects where features like interception, custom lifetime scopes, or complex registration logic (Resolving a service with some associated Metadata) could be usefull.

Once again, thanks a lot!

ardalis commented 2 months ago

@vodicka2000 See: https://github.com/ardalis/CleanArchitecture/issues/649

While I agree autofac has some nice features it was just adding to the feature count and learning curve of the template and in many cases folks don't need the added complexity.