Episode
Migrating static content from ASP.NET to ASP.NET Core [14 of 18] Migrating from ASP.NET to ASP.NET Core
with Mike Rousos
In this video, Mike continues migrating an ASP.NET app to ASP.NET Core by migrating static content (images, CSS, and JavaScript) from the ASP.NET app to the new ASP.NET Core app. See how to use LigerShark.WebOptimizer to easily migrate System.Web.Optimization-delivered bundles to ASP.NET Core.
Chapters
- 00:00 - Intro
- 00:25 - Analyzing static content to be migrated
- 02:45 - Moving static files to the ASP.NET Core application
- 04:20 - Setting up static files served via controller
- 07:35 - Migrating Server.MapPath to IHostEnvironment
- 11:05 - Options for updating bundled resources
- 13:45 - Using WebOptimizer for bundled resources
- 16:52 - Moving CSS and JS to ASP.NET Core project
- 18:00 - Updating ASP.NET Core views
- 19:40 - Running the updated app
- 20:45 - Reviewing what we've done and next steps
Recommended resources
- Get the code on GitHub
- Migrating ASP.NET to ASP.NET Core
- .NET Upgrade Planner
- .NET Upgrade Assistant (VS Extension)
- .NET Upgrade Assistant (command line)
- System.Web Adapters
- Get your questions answered on the Microsoft Q&A for .NET
- Learn C#, F#, and .NET with free self-guided learning from Microsoft Learn
Related episodes
Connect
In this video, Mike continues migrating an ASP.NET app to ASP.NET Core by migrating static content (images, CSS, and JavaScript) from the ASP.NET app to the new ASP.NET Core app. See how to use LigerShark.WebOptimizer to easily migrate System.Web.Optimization-delivered bundles to ASP.NET Core.
Chapters
- 00:00 - Intro
- 00:25 - Analyzing static content to be migrated
- 02:45 - Moving static files to the ASP.NET Core application
- 04:20 - Setting up static files served via controller
- 07:35 - Migrating Server.MapPath to IHostEnvironment
- 11:05 - Options for updating bundled resources
- 13:45 - Using WebOptimizer for bundled resources
- 16:52 - Moving CSS and JS to ASP.NET Core project
- 18:00 - Updating ASP.NET Core views
- 19:40 - Running the updated app
- 20:45 - Reviewing what we've done and next steps
Recommended resources
- Get the code on GitHub
- Migrating ASP.NET to ASP.NET Core
- .NET Upgrade Planner
- .NET Upgrade Assistant (VS Extension)
- .NET Upgrade Assistant (command line)
- System.Web Adapters
- Get your questions answered on the Microsoft Q&A for .NET
- Learn C#, F#, and .NET with free self-guided learning from Microsoft Learn
Related episodes
Connect
Have feedback? Submit an issue here.