📘
Quick reference
  • Install
    • Winget
    • Dotnet SDK
    • Visual Studio (Both)
    • LocalDB
    • REPL
  • Dotnet CLI
    • Solution creation
    • Project creation
    • dotnet ef install
    • dotnet ef commands
  • Trouble shooting
    • VS plugin crashes
Powered by GitBook
On this page
  1. Dotnet CLI

Project creation

PreviousSolution creationNextdotnet ef install

Last updated 2 years ago

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

web
mvc
webapp, razor
webapi
nunit
classlib