Migrating Autofac To Dotnet Di

Removes Autofac entirely and migrates to ASP.NET Core built-in DI by mapping container registrations, lifetimes, and module patterns. Use when upgrading .NET projects that reference Autofac packages, when converting ContainerBuilder registrations, or when replacing Autofac modules with IServiceCollection extensions. Triggers for "replace Autofac", "remove Autofac", "migrate to built-in DI", "convert dependency injection", Autofac.Extensions.DependencyInjection, RegisterType, InstancePerLifetimeScope, and ContainerBuilder references in C# or VB.NET projects.

Microsoft Updated 195k repo stars
image

File contents

microsoft/upgrade-agent-plugins commit 0e01fc3788

Frequently asked questions

npx get-skill add microsoft/migrating-autofac-to-dotnet-di