Developing modern web apps using ASP.NET Core 6
ASP.NET Core is Microsoft’s premier platform to build web applications. In this course, you’ll get an overview of ASP.NET Core MVC, Blazor and Web API.
This course will give students a solid understanding of the ASP.NET Core 6 platform including ASP.NET Core 6 MVC and ASP.NET Core 6 Blazor. It requires that students are familiar with C# and have at least basic web development skills. This course can act both as an introduction to students new to MVC who want to get started with the newest version of the framework as well as an overview for seasoned ASP.NET developers willing to learn what’s new in this version of the framework.
After taking this course, developers will have a good understanding of the different options to build web applications on the .NET 6 stack.
This course is uses .NET 6 and Visual Studio 2022.
Target Audience and Prerequisites
This course is intended for web developers. The prerequisites are:
- WebForms or other ASP.NET Experience is a plus but not required
About the trainer
Gill Cleeren is a Microsoft Regional Director, Windows Platform MVP and Pluralsight author. Gill focuses on mobile development for the Windows stack as well as Xamarin. Gill is a frequent speaker at many international conferences such as TechDays, TechEd, NDC, VSLive and many more. He also is the founder of Techorama, the biggest developer conference in Belgium and he runs Visug, the .NET user group in Belgium as well.
Moving to .NET 6 and ASP.NET Core
This first module will give you an overview of the .NET 6 platform and its components. We will also look at the .NET Core CLI.
Finding your way around ASP NET Core MVC
In this module, we will together create the File > new project and see what is getting generated. You’ll learn about the new files, workflow and configuration options that come with ASP.NET Core 5.
Creating our first page
In this module, we’ll be building our first ASP.NET Core pages. We’ll start with basic configuration and add a first view, model and a controller. You’ll see how routing works as well as how we can allow users to authenticate with the site. After this module, you’ll already have a good understanding of how an ASP.NET Core MVC app is built and you’ll be able to identify its major building blocks such as controllers, routing and views.
An introduction to EF Core
ASP.NET Core MVC comes backed with support of a new version of Entity Framework Core. This new version of the framework has been redesigned from scratch to target .NET Core. In this module, we are exploring the new framework. We’ll see how it’s focuses entirely on code-first approaches.
Navigation and Routing
Routing is something specific to the ASP.NET Core MVC framework. In this chapter, you’ll learn about the options that are offered by the ASP.NET Core 5 MVC framework to navigate to pages as well as creating well-formatted URLs for reasons of SEO.
Creating a Form
Creating the model requires some good thinking ahead as it forms the base of our application. Model binding is covered in this chapter as well as validation, which will give us the option to give quick feedback to the user about erroneous input. We’ll together create a form that uses the model.
An introduction to ASP NET Identity
ASP.NET Core comes with ASP.NET Identity, a built-in framework that allows authenticating users from different sources. In this module, we’ll explore how we can authenticate users and how we can authorize them to perform actions within our site.
Tackling security risks with ASP.NET Core
ASP.NET sites will be under attack, that’s for sure. We of course as the developers of the site need to make sure that we tackle risks before it’s deployed. In this module, we’ll see how we can tackle XSS, CSRF… as the most common security risks in our application.
Advanced concepts in ASP.NET Core
In this chapter, we will cover in more detail several more advanced topics such as model binding, custom and complex tag helpers, attribute routing, filters and many more.
Creating an API using ASP.NET MVC Core 6
ASP.NET Core MVC now has unified the API and regular controller model, making the creation of APIs even simpler. In this module, we are therefore focusing on the aspects that are closely related to RESTful Web APIs.
Understanding Blazor apps
Blazor introduces a radical new way for .NET developers to build client-side applications. In this module, we will understand the concepts behind this new technology.
Building components with Blazor
Blazor uses components to build the UI. Using APIs, we can connect these component with live data. This module will show us how we can build these in detail.
Unit testing in ASP.NET Core MVC
Building enterprise applications without a good set of tests is far from a recommended approach. In this chapter, we will explore how you can write unit tests for an ASP.NET Core 5 MVC application using xUnit.
Diagnostics and Logging
Through middleware, ASP.NET Core 5 applications can be configured to give diagnostic information to the users. Also, ASP.NET Core comes with a built-in logging system that we’ll explore in this module as well. We’ll also add some third-party logging providers here as well (Serilog).
Caching and performance
Performance is vital for ASP.NET Core applications. In this chapter, we will learn how we can make use of the different ways of adding caching to our site, including in-memory caching, distributed caching and response caching.
Deploying and CI
In this chapter, we will explore how we can deploy the application to Azure. Using VSTS (Visual Studio Team Services), we will also see how we can automate the build as well as set up a continuous build and continuous integration.