migrating-mvc-content-negotiation
Migrates ASP.NET Web API content negotiation and formatters to ASP.NET Core equivalents. Converts MediaTypeFormatter subclasses to InputFormatter/OutputFormatter, replaces IContentNegotiator with OutputFormatterSelector, and updates formatter registration from HttpConfiguration.Formatters to MvcOptions. Use when upgrading Web API projects that…
Full publisher description
Migrates ASP.NET Web API content negotiation and formatters to ASP.NET Core equivalents. Converts MediaTypeFormatter subclasses to InputFormatter/OutputFormatter, replaces IContentNegotiator with OutputFormatterSelector, and updates formatter registration from HttpConfiguration.Formatters to MvcOptions. Use when upgrading Web API projects that define custom MediaTypeFormatter classes, configure content negotiation via IContentNegotiator, register XML or JSON formatters, use MediaTypeMapping, or need to migrate from Newtonsoft.Json to System.Text.Json. Also triggers for conneg migration, formatter pipeline changes, and 406 Not Acceptable behavior configuration.
Source details
Read SKILL.md ↗ · Browse skill folder ↗
microsoft/upgrade-agent-plugins
plugins/upgrade-agent/upgrade/dotnet/skills/lazy/web/mvc/migrating-mvc-content-negotiation/SKILL.mdPinned revision cede9dcfbc09a06f0e63652e64fc7545ce5fe1df
Source checked
Reviewed licence: LicenseRef-Microsoft-Copilot-Modernization-Preview
Repository default at the reviewed revision: Visual Studio development/testing only; preview expiry, confidentiality and no-sharing/distribution restrictions apply. Copilot access has separate terms.
Reviewed publisher revision ↗ · 2026-11-22
This indexed source has a different revision. Verify its applicable terms before use.
This skill page is available in English. Publisher instructions stay in their original language.