Click here to Skip to main content
15,889,863 members
Articles / Web Development / ASP.NET

Adding Dependency Injection to your .NET Console Apps (and Tests)

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
7 Aug 2022CPOL3 min read 8.7K   5  
How to add DI to your .NET console apps
The examples shown in this post will use Microsoft’s no-frills DI container that comes out of the box with ASP.NET Core projects. The concepts covered here will be similar for other containers, but the code itself will differ slightly.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Australia Australia
G'day guys! My name is Jason, and I'm a backend software engineer living in Sydney, Australia. I enjoy blogging, playing chess and travelling.

Comments and Discussions