liveBook · Manning

Dotnet new

dotnet new is a .NET command-line command that creates projects and other files from installed templates and lists available templates.

How 3 Manning books explain it

.NET in Action, Second Edition

dotnet new list is a .NET CLI command that displays the project templates installed for use by dotnet new.

How it is used
Creates .NET applications from the command line and verifies which project templates are installed.
How deep it goes
Explains command use through creation, help, installation, and verification workflows without detailing CLI implementation internals.
Examples
Uses console, web API, xUnit, and custom command-line templates as concrete project-generation examples.
What you can do after
Operate the .NET CLI to inspect installed templates, create projects, and verify custom-template installation.

Read how .NET in Action, Second Edition explains dotnet new →

ASP.NET Core in Action, 3e

dotnet new is a .NET CLI command that creates projects from installed templates.

How it is used
Creates ASP.NET Core applications from templates before restoring, building, and running them.
How deep it goes
Demonstrates template creation and options, but defers template customization and deployment to later commands.
Examples
Uses `dotnet new webapp -au Individual`, SQLite or LocalDB selection, and a generated Razor Pages login application.
What you can do after
Build a starter ASP.NET Core application from the command line and select its authentication and database configuration.

Read how ASP.NET Core in Action, 3e explains dotnet new →

Pro ASP.NET Core 7, Tenth Edition

The dotnet new command is a .NET CLI command that creates projects, configuration files, and solution files from templates.

How it is used
Creates ASP.NET Core projects and shared configuration items during initial application setup.
How deep it goes
Explains template selection and runnable creation commands, while stopping short of template internals.
Examples
Demonstrates template listing, a .NET 7 web project, global.json, a solution file, and adding the project to the solution.
What you can do after
Apply it via the .NET CLI to create and organize an ASP.NET Core project from selected templates.

Read how Pro ASP.NET Core 7, Tenth Edition explains dotnet new →

Related concepts

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.