migrating-mvc-bundling

Migrate ASP.NET MVC System.Web.Optimization bundles to direct script and link tags in Razor views.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill migrates ASP.NET MVC bundling and minification from System.Web.Optimization to direct script/link tags in ASP.NET Core Razor views, simplifying the upgrade process for .NET Framework MVC apps.

Core Features & Use Cases

  • Bundle Migration: Converts System.Web.Optimization bundles to direct <script> and <link> tags.
  • Modernization: Improves the compatibility of .NET Framework MVC apps with .NET Core.
  • Use Case: When upgrading an ASP.NET MVC application that uses BundleTable.Bundles, BundleConfig.cs, ScriptBundle, StyleBundle, @Scripts.Render, or @Styles.Render, this Skill automates the process of migrating to ASP.NET Core's static file serving.

Quick Start

Run the skill and follow the automated workflow to upgrade your ASP.NET MVC bundling to ASP.NET Core.

Frequently Asked Questions about migrating-mvc-bundling

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

FAQPage Schema
How do I migrate ASP.NET MVC bundling to ASP.NET Core Razor views?

To migrate ASP.NET MVC bundling, you convert System.Web.Optimization bundles to direct script and link tags. This replaces @Scripts.Render and @Styles.Render with static file references in ASP.NET Core Razor views.

What is the best way to replace System.Web.Optimization bundles when upgrading to ASP.NET Core?

Replacing System.Web.Optimization bundles is best handled by converting BundleConfig.cs configurations into direct script and link tags. This modernizes script and style includes for ASP.NET Core static file serving.

Does ASP.NET Core support System.Web.Optimization BundleTable.Bundles?

ASP.NET Core does not support System.Web.Optimization BundleTable.Bundles. You must migrate existing ScriptBundle and StyleBundle registrations to direct script and link tags within Razor views.

Can I automate converting @Scripts.Render and @Styles.Render to direct tags in ASP.NET Core?

Yes, converting @Scripts.Render and @Styles.Render to direct tags can be automated. The migration process targets Razor views to replace bundling syntax with static script and link file references.

Why do I need to remove System.Web.Optimization dependencies for ASP.NET Core migration?

You need to remove System.Web.Optimization dependencies because ASP.NET Core uses static file serving instead of runtime bundling. Migrating to direct script and link tags eliminates this legacy dependency.