dotnet new

The dotnet command that creates a new project, solution or file from a template, such as a console app or a web API.

In more detail

A template is a ready-made starting point: dotnet new console writes a project file and a Program.cs, and dotnet new sln creates an empty solution. Inspect what a template generated before adding code to it.

Example

dotnet new console -n Hello

Related terms

Taught in

References