Generally, if we create a .NET core web application using Visual Studio or dotnet CLI, the template already has Startup class. This class contains all basic setup, ready to use for using many different services. In this article, let’s try to setup a demo console application to use dependency injection. That might help us understand…