Migrating Mvc Controllers

Migrates ASP.NET Framework controllers and action results to ASP.NET Core equivalents, covering both MVC (Controller) and WebAPI (ApiController) patterns. Use when upgrading controllers that return HttpResponseMessage, IHttpActionResult, use ApiController base class, use Request.CreateResponse(), ResponseTypeAttribute, ChildActionOnlyAttribute, or AsyncController. Also triggers for "convert WebAPI controller", "migrate action results", "replace HttpResponseMessage", "IActionResult migration", and controller return type rewrite.

Microsoft Updated 195k repo stars
image

File contents

microsoft/upgrade-agent-plugins commit b0c741e22e

Frequently asked questions

npx get-skill add microsoft/migrating-mvc-controllers