Migrating static content from ASP.NET to ASP.NET Core [14/18] Migrating from ASP.NET to ASP.NET Core



Migrating static content from ASP.NET to ASP.NET Core [14/18] Migrating from ASP.NET to ASP.NET Core

Migrating static content from ASP.NET to ASP.NET Core [14/18] Migrating from ASP.NET to ASP.NET Core

In this video, Mike continues migrating an ASP.NET app to ASP.NET Core by migrating static content (images, css, and js) 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.

Series:
1. .NET Migration Overview – https://youtu.be/zHgYDZK3MrA
2. Why Upgrade to .NET? – https://youtu.be/Fb6PsBW2ekg
3. Getting Started with .NET Upgrade Assistant – https://youtu.be/FRrslz_AHzE
4. Analyzing a Solution with .NET Upgrade Planner – https://youtu.be/_nox9CYaA_s
5. Upgrade Analysis with .NET Upgrade Assistant – https://youtu.be/TwAKnZ-XcU4
6. Upgrading a Project with .NET Upgrade Assistant – https://youtu.be/ttangBEcZfo
7. Intro to the Upgrade Assistant Visual Studio Extension – https://youtu.be/B2vz98yfskc
8. Creating a New Project with the Upgrade Assistant Visual Studio Extension – https://youtu.be/LQxSX_gkNj4
9. Migrating an Endpoint with the Upgrade Assistant Visual Studio Extension – https://youtu.be/RpGnyN8c5qw
10. Migrating a Class Library with System.Web Dependencies – https://youtu.be/TB7nfriQuGI
11. Using System.Web Adapters to Share Session State in ASP.NET Upgrade Scenarios – https://youtu.be/_XG3EYRcgY8
12. Using System.Web Adapters to Share Authentication in ASP.NET Upgrade Scenarios – https://youtu.be/5hEghsFQB48
13. Sharing Authentication Cookies in ASP.NET Upgrade Scenarios – https://youtu.be/WF-8Yz8QKcw
14. Migrating static content from ASP.NET to ASP.NET Core – https://youtu.be/SmP38AW4KkY
15. Deploying an Incrementally Migrated ASP.NET App to Azure App Service – https://youtu.be/u5Hspwt50O0
16. ASP.NET to ASP.NET Core Migration Wrap-Up – https://youtu.be/rPEZ3_-CjDM
17. Upgrading from WCF to CoreWCF – https://youtu.be/w2FUHYLR0hM
18. Deep Dive into System.Web Adapters – https://youtu.be/zXoGXbB3JDI

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

Follow Mike:
Twitter: https://twitter.com/mjrousos
GitHub: https://github.com/mjrousos

Links:
Get the code – https://github.com/mjrousos/UpgradeSample
Migrating ASP.NET to ASP.NET Core – https://learn.microsoft.com/en-us/aspnet/core/migration/proper-to-2x/
.NET Upgrade Planner – https://apisof.net/upgrade-planner
.NET Upgrade Assistant (VS Extension) – https://learn.microsoft.com/aspnet/core/migration/inc/overview
.NET Upgrade Assistant (command line) – https://github.com/dotnet/upgrade-assistant
System.Web Adapters – https://github.com/dotnet/systemweb-adapters

🙋‍♀️🙋‍♂️ Get your questions answered on the Microsoft Q&A for .NET: https://aka.ms/dotnet-qa

🏫 Learn C#, F#, and .NET with free self-guided learning from Microsoft Learn: https://aka.ms/learndotnet

#dotnet #upgradeassistant #aspnetmvc