Last updated 1 year ago
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>
dotnet new web -f net7.0 -o MyEmptyProject
ASP.NET Core Empty
web
ASP.NET Core Web App (Model-View-Controller)
mvc
ASP.NET Core Web App
webapp, razor
ASP.NET Core Web API
webapi
NUnit 3 Test Project
nunit
Class library
classlib