This repository illustrate how to use .NET Core's Built-in Dependency Injection in a Console Application.
packages Microsoft.Extensions.DependencyInjection.Abstractions and Microsoft.Extensions.DependencyInjection are required. Install them from the NuGet package manager, before you run.