migrating-mvc-model-binding

Migrate ASP.NET MVC model binding to ASP.NET Core.

19|2|Updated May 13, 2026
One-click install
npx skills add https://github.com/microsoft/upgrade-agent-plugins --skill migrating-mvc-model-binding
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migrating-mvc-model-binding
Source: https://github.com/microsoft/upgrade-agent-plugins/tree/main/plugins/upgrade-agent/extenders/upgrade-dotnet/upgrade/skills/lazy/web/mvc/migrating-mvc-model-binding
Command: npx skills add https://github.com/microsoft/upgrade-agent-plugins --skill migrating-mvc-model-binding

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill migrates model binding in ASP.NET MVC projects to ASP.NET Core, simplifying the transition and ensuring compatibility.

Core Features & Use Cases

  • Model Binding Migration: Converts model binding source attributes, custom binders, and value providers from MVC to Core.
  • Binding Source Inference: Handles [ApiController] inference and [FromUri] to [FromQuery]/ [FromRoute] conversion.
  • Custom Binder Registration: Migrates registration of custom IModelBinder implementations.
  • Use Case: Upgrade an MVC or Web API project to ASP.NET Core with minimal changes to model binding logic.

Quick Start

Run the migrating-mvc-model-binding skill in your project to initiate the migration process.

Frequently Asked Questions about migrating-mvc-model-binding

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate ASP.NET MVC model binding to ASP.NET Core?

This skill automates model binding migration by converting binding source attributes, custom IModelBinder implementations, and value providers from ASP.NET MVC to ASP.NET Core. It handles ApiController inference and translates FromUri attributes to FromQuery or FromRoute for Core compatibility.

How does binding source inference work when upgrading to ASP.NET Core?

Binding source inference with the ApiController attribute automatically maps parameters in ASP.NET Core. This skill translates legacy FromUri attributes into FromQuery or FromRoute, ensuring parameters bind correctly without manual attribute updates during the migration.

Can I migrate custom model binders and value providers from MVC 5 to ASP.NET Core?

Yes, custom IModelBinder implementations and value providers from MVC 5 or Web API 2 can be migrated. This skill converts custom binder registration patterns and adapts value provider logic to the updated ASP.NET Core model binding architecture.

What is the best way to handle over-posting protection during ASP.NET Core migration?

The best way to handle over-posting protection during migration is to adapt existing model binding security patterns to ASP.NET Core. This skill addresses over-posting protection alongside binding source attributes and custom binder conversions to maintain security.

Do I need knowledge of model binder patterns to migrate ASP.NET Web API 2 projects?

Yes, migrating Web API 2 projects requires prerequisite knowledge of model binder and value provider patterns. Understanding these patterns is necessary to effectively transition custom binding logic and registration to the ASP.NET Core architecture.