liveBook · Manning

Chapter 2: Understanding ASP.NET Core

What you will learn in chapter 2 of ASP.NET Core in Action, 3e

This chapter introduces why web frameworks and ASP.NET Core exist, the framework's application approaches, and how .NET developers can decide whether to adopt or migrate to ASP.NET Core.

After this chapter you will be able to

What it builds on

Section by section

Introduction

This chapter introduces why web frameworks and ASP.NET Core exist, the framework's application approaches, and how .NET developers can decide whether to adopt or migrate to ASP.NET Core.

Key terms: web frameworks, ASP.NET Core, application paradigms, migrating, .NET development, .NET Core, .NET 7, previous versions of ASP.NET

2.1 Using a web framework

This section explains why web frameworks such as ASP.NET Core are needed to build secure, maintainable, dynamic web applications rather than only simple static sites.

Key terms: web framework, static web application, ASP.NET Core, security, dynamic behavior, libraries, configuration files, logging requests, maintainable applications, Facebook accounts

2.2 Why ASP.NET Core was created

This section explains why Microsoft rebuilt ASP.NET as ASP.NET Core on the modern, cross-platform .NET platform and how its modular design addresses limitations of legacy ASP.NET.

Key terms: cross-platform, modular architecture, open-source software, web standards, client-side applications, cloud environments, .NET Framework, .NET Core, .NET 5+, .NET 5

2.3 Understanding the many paradigms of ASP.NET Core

This section surveys the ASP.NET Core paradigms for server-rendered websites, HTTP and gRPC APIs, and interactive Blazor applications, and relates each to suitable application styles.

Key terms: Minimal APIs, Web APIs, gRPC APIs, Razor Pages, MVC controllers, Blazor WebAssembly, server-side-rendered, page-based paradigm, REST, RESTful

2.4 When to choose ASP.NET Core

This section frames the choice of ASP.NET Core around support considerations and whether you are new to .NET or are building or converting an application.

Key terms: ASP.NET Core, .NET 7, legacy .NET Framework ASP.NET, new application, existing application, Long Term Support (LTS), .NET, open-source software, Microsoft, caveats

2.4.1 If you’re new to .NET development

This subsection explains why ASP.NET Core is an approachable choice for developers new to .NET, emphasizing C#, cross-platform deployment, containers, and familiar web-development patterns.

Key terms: C#, LINQ, closures, asynchronous programming, Roslyn, .NET 7, Intermediate Language (IL), compile-once, run-anywhere, self-contained deployment (SCD), runtime

2.4.2 If you’re a .NET Framework developer creating a new application

This section explains why .NET Framework developers should choose ASP.NET Core for new applications, emphasizing cross-platform deployment, its Kestrel-based hosting model, modular features, and modern release model.

Key terms: .NET 7, cross-platform, Windows Compatibility Pack, Registry, Directory Services, hosting model, Kestrel, HTTP server, self-host, console application

2.4.3 Converting an existing ASP.NET application to ASP.NET Core

This section explains how to judge, plan, and reduce the risk of moving an existing ASP.NET application to ASP.NET Core.

Key terms: cross-platform deployment, modular features, performance, rewrite, ASP.NET Web Forms, System.Web.dll, IIS, Blazor server, web API, ViewState

2.5 Summary

This summary recaps ASP.NET Core's modern cross-platform design, its fit for new or migrating applications, and its typical reverse-proxy deployment arrangement.

Where this is used later

Concepts explained in this chapter

← Chapter 1: Getting started with ASP.NET Core Chapter 3: Your first application →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.