Integrating Autofac With Dotnet

Migrates Autofac dependency injection configuration from ASP.NET Framework to ASP.NET Core's hosting model while keeping Autofac as the DI container. Use when upgrading projects that use Autofac, migrating Global.asax.cs or Startup.cs DI setup to Program.cs, or integrating AutofacServiceProviderFactory with the generic host. Triggers for Autofac container registration, UseServiceProviderFactory, ContainerBuilder migration, and DependencyResolver removal.

Microsoft Updated 195k repo stars
image

File contents

microsoft/upgrade-agent-plugins commit 24cbfa3673

Frequently asked questions

npx get-skill add microsoft/integrating-autofac-with-dotnet