Project creation

Project creation

The following table shows the templates that come pre-installed with the .NET SDK. The default language for the template is shown inside the brackets. Click on the short name link to see the specific template options.

dotnet new <TEMPLATE> -f 7.0 -o <output_directory>

Example

dotnet new web -f net7.0 -o MyEmptyProject

Templates

ASP.NET Core Empty

ASP.NET Core Web App (Model-View-Controller)

ASP.NET Core Web App

ASP.NET Core Web API

NUnit 3 Test Project

Class library

Last updated