To resolve Dependency injection in a console app, in a simple way you can use DI build-in support default in Asp.Net Core. You use ServiceCollection class to help resolve the dependency. To get more info please read this article.