Skip to content

Console App (Full Framework)

Kevin Bost edited this page Dec 21, 2018 · 2 revisions

This is an example using AutoDI to supplement a console app that uses the full .NET Framework.

  1. Create an empty console project
  2. Add a NuGet reference to AutoDI.Build this will also add the AutoDI package.
  3. Build your application. AutoDI will handle the mapping and registration of all of your services and classes, and inject them into the container when the application starts.