When you install .NET Core SDK, it includes the command-line interface (CLI) named dotnet
.
The dotnet
command-line interface has commands that work on the current folder to create a new project using templates, some of which are listed here:
dotnet new console
: This creates a new console application projectdotnet new classlib
: This creates a new assembly library projectdotnet new web
: This creates a new empty ASP.NET Core projectdotnet new mvc
: This creates a new ASP.NET Core MVC projectdotnet new razor
: This creates a new ASP.NET Core MVC project with support for Razor Pagesdotnet new angular
: This creates a new ASP.NET Core MVC project with support for an Angular Single Page Application as the frontenddotnet new react
: This creates a new ASP.NET Core MVC project with support for an React Single Page Application (SPA) as the frontenddotnet new webapi
: This creates a new ASP.NET Core Web API project