liveBook · Manning

Software template

As explained in ASP.NET Core in Action, 3e

A project template is a predefined set of files and settings used to generate the initial structure of a software project.

A software template is a predefined set of files and settings that generates a starting project. It quickly supplies fundamental application pieces while leaving room for customization. section 3.2.1 section 23.3.1

Templates can establish different starting points:

  • Create an empty ASP.NET Core minimal API application with Visual Studio or the .NET CLI. section 3.2.1
  • Generate a Razor Pages application with Identity, individual accounts, database configuration, and authentication pages. section 23.3.1
  • Customize generated settings such as the framework version, HTTPS, Docker support, top-level statements, authentication type, and database provider. section 3.2.1 section 23.3.1

Create a minimal API project

Create a solution and project from a terminal: `dotnet new sln -n WebApplication1`, `dotnet new web -o WebApplication1`, then `dotnet sln add WebApplication1`. The template generates the initial application structure.

How ASP.NET Core in Action, 3e covers it

How deep it goes
Explains selection, configuration, CLI creation, generated files, and migrations, but does not develop template authoring.
Examples
Uses ASP.NET Core Empty, minimal API CLI commands, and an individual-account Razor Pages application as concrete examples.
What it assumes
Assumes an installed .NET 7 SDK for the demonstrated setup and teaches project creation through guided Visual Studio or CLI steps.
What you can do after
Build a runnable ASP.NET Core project using Visual Studio or the .NET CLI, then inspect and customize its generated code.
How it connects
Connects templates with ASP.NET Core, minimal APIs, Razor Pages, Identity, .NET CLI, Visual Studio, EF Core, and solutions.

Also explained in

Compare how 3 books explain software template →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of ASP.NET Core in Action, 3e. The section links point to the parts of the book it draws on.