Lessons in this course (10)

10. MVC 5 vs ASP.NET Core MVC and migration

Advanced★ Must knowLesson 10 of 10
TopicMVC 5 (.NET Framework)ASP.NET Core MVC
HostingIIS only (System.Web)Kestrel, IIS, Linux, containers
StartupGlobal.asax + App_Start + web.configProgram.cs (WebApplication builder) + appsettings.json
PipelineHttpModules/HttpHandlersMiddleware
DIThird-party via DependencyResolverBuilt in
MVC + Web APISeparate frameworksOne framework (ControllerBase)
Child actionsHtml.ActionView components
HelpersHTML helpersTag helpers (+ HTML helpers)
BundlingSystem.Web.OptimizationStatic files + build tools (Vite/Webpack/LibMan) or WebOptimizer
ConfigConfigurationManager.AppSettingsIConfiguration, Options pattern
AuthOWIN/Identity 2, Forms authASP.NET Core Identity, cookie/JWT handlers
Static filesServed by IISUseStaticFiles() from wwwroot

Migration path: move business/data logic into libraries; create a new ASP.NET Core project; port controllers (mostly the same code), views (mostly the same Razor, replace child actions and bundling), filters (similar interfaces), configuration and DI; use the .NET Upgrade Assistant and System.Web adapters; for big apps migrate incrementally behind YARP (route migrated paths to the new app, the rest to the old app, share authentication).