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.
安装
npx skills add microsoft/upgrade-agent-plugins --skill integrating-autofac-with-dotnetnpx skills add microsoft/upgrade-agent-plugins --skill integrating-autofac-with-dotnet -a claude-code -gnpx skills add microsoft/upgrade-agent-plugins --skill integrating-autofac-with-dotnet -a codex -ggemini skills install https://github.com/microsoft/upgrade-agent-plugins.git --path plugins/upgrade-agent/upgrade/dotnet/skills/lazy/libraries/integrating-autofac-with-dotnetgh skill install microsoft/upgrade-agent-plugins integrating-autofac-with-dotnetgit clone --depth 1 https://github.com/microsoft/upgrade-agent-plugins /tmp/microsoft__upgrade-agent-plugins
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/microsoft__upgrade-agent-plugins/plugins/upgrade-agent/upgrade/dotnet/skills/lazy/libraries/integrating-autofac-with-dotnet ~/.claude/skills/integrating-autofac-with-dotnet # Claude Code
cp -R /tmp/microsoft__upgrade-agent-plugins/plugins/upgrade-agent/upgrade/dotnet/skills/lazy/libraries/integrating-autofac-with-dotnet ~/.agents/skills/integrating-autofac-with-dotnet # Codex, Cursor, Gemini CLI, Copilot, OpenCode