.NET 6 Features in ACTION | ASP.NET Core WebAPI



.NET 6 Features in ACTION | ASP.NET Core WebAPI

.NET 6 Features in ACTION | ASP.NET Core WebAPI

.NET 6 and C# 10 are released. In this video, I want to show you new features we can use in our applications.

However, I don’t just want to explain those features. I will take an existing Asp.Net Core WebAPI application running on .NET Core 3.1 and turn it into a modern .NET 6 application.

The goal is to showcase the new .NET 6 features and provide a starting point for everyone who wants to update their real-world applications.

The application we will refactor into a modern .NET 6 application is a small Asp.Net Core WebAPI backend for an Android app I wrote years ago.

00:00 Introduction
00:32 The Demo Application
01:45 Changing the Target Framework to .NET 6
03:40 Remove Autofac
05:24 The Minimal Hosting Model
06:41 Migrating to the Minimal Hosting Model
08:53 Global Usings and Implicit Usings
10:30 File-scoped Namespaces
11:31 Minimal APIs
14:27 Reducing Code Duplication
15:10 Outro

🔥 The FREE Blazor Crash Course:
https://www.youtube.com/watch?v=89Klc6WHElw&list=PLwISgxnkpZGL_LhTQCWwp-WCzupv7lcp0

📌 Blazor Playlist:
https://www.youtube.com/watch?v=iS1W1DJ3nEQ&list=PLwISgxnkpZGITT6pELfCeQ6qK0G3ujldZ

📌 Announcing .NET 6 (Blog post)
https://devblogs.microsoft.com/dotnet/announcing-net-6/

📌 Migrate from ASP.NET Core 5.0 to 6.0
https://docs.microsoft.com/en-us/aspnet/core/migration/50-to-60?view=aspnetcore-6.0&tabs=visual-studio

📌 Visual Studio 2022 (Blog post)
https://devblogs.microsoft.com/visualstudio/visual-studio-2022-now-available/

📌 What’s New in C# 10?
https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-10

📌 ASP.Net Core Minimal APIs
https://docs.microsoft.com/en-us/aspnet/core/tutorials/min-web-api?view=aspnetcore-6.0&tabs=visual-studio

✅ SUBSCRIBE FOR MORE VIDEOS
Subscribe: 🔔 https://claudiobernasconi.ch/Subscribe

🚀 CONNECT & SUPPORT
Patreon: https://patreon.com/claudiobernasconi
Twitter: https://www.twitter.com/CHBernasconiC
Blog: https://www.claudiobernasconi.ch

Comments are closed.