Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 42 additions & 39 deletions docs/core/tools/dotnet-new-sdk-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: .NET default templates for dotnet new
description: The information about dotnet new templates shipped with dotnet SDK.
ms.custom: updateeachrelease
no-loc: [Blazor, WebAssembly]
ms.date: 03/01/2022
ms.date: 07/28/2022
---
# .NET default templates for dotnet new

Expand All @@ -15,44 +15,46 @@ dotnet new --list

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.

| Templates | Short name | Language | Tags | Introduced |
|----------------------------------------------|-----------------------------------|--------------|---------------------------------------|------------|
| Console Application | [`console`](#console) | [C#], F#, VB | Common/Console | 1.0 |
| Class library | [`classlib`](#classlib) | [C#], F#, VB | Common/Library | 1.0 |
| WPF Application | [`wpf`](#wpf) | [C#], VB | Common/WPF | 3.0 (5.0 for VB)|
| WPF Class library | [`wpflib`](#wpf) | [C#], VB | Common/WPF | 3.0 (5.0 for VB)|
| WPF Custom Control Library | [`wpfcustomcontrollib`](#wpf) | [C#], VB | Common/WPF | 3.0 (5.0 for VB)|
| WPF User Control Library | [`wpfusercontrollib`](#wpf) | [C#], VB | Common/WPF | 3.0 (5.0 for VB)|
| Windows Forms (WinForms) Application | [`winforms`](#winforms) | [C#], VB | Common/WinForms | 3.0 (5.0 for VB)|
| Windows Forms (WinForms) Class library | [`winformslib`](#winforms) | [C#], VB | Common/WinForms | 3.0 (5.0 for VB)|
| Worker Service | [`worker`](#web-others) | [C#] | Common/Worker/Web | 3.0 |
| Unit Test Project | [`mstest`](#test) | [C#], F#, VB | Test/MSTest | 1.0 |
| NUnit 3 Test Project | [`nunit`](#nunit) | [C#], F#, VB | Test/NUnit | 2.1.400 |
| NUnit 3 Test Item | `nunit-test` | [C#], F#, VB | Test/NUnit | 2.2 |
| xUnit Test Project | [`xunit`](#test) | [C#], F#, VB | Test/xUnit | 1.0 |
| Razor Component | `razorcomponent` | [C#] | Web/ASP.NET | 3.0 |
| Razor Page | [`page`](#page) | [C#] | Web/ASP.NET | 2.0 |
| MVC ViewImports | [`viewimports`](#namespace) | [C#] | Web/ASP.NET | 2.0 |
| MVC ViewStart | `viewstart` | [C#] | Web/ASP.NET | 2.0 |
| Blazor Server App | [`blazorserver`](#blazorserver) | [C#] | Web/Blazor | 3.0 |
| Blazor WebAssembly App | [`blazorwasm`](#blazorwasm) | [C#] | Web/Blazor/WebAssembly | 3.1.300 |
| ASP.NET Core Empty | [`web`](#web) | [C#], F# | Web/Empty | 1.0 |
| ASP.NET Core Web App (Model-View-Controller) | [`mvc`](#web-options) | [C#], F# | Web/MVC | 1.0 |
| ASP.NET Core Web App | [`webapp, razor`](#web-options) | [C#] | Web/MVC/Razor Pages | 2.2, 2.0 |
| ASP.NET Core with Angular | [`angular`](#spa) | [C#] | Web/MVC/SPA | 2.0 |
| ASP.NET Core with React.js | [`react`](#spa) | [C#] | Web/MVC/SPA | 2.0 |
| ASP.NET Core with React.js and Redux | [`reactredux`](#reactredux) | [C#] | Web/MVC/SPA | 2.0 |
| Razor Class Library | [`razorclasslib`](#razorclasslib) | [C#] | Web/Razor/Library/Razor Class Library | 2.1 |
| ASP.NET Core Web API | [`webapi`](#webapi) | [C#], F# | Web/WebAPI | 1.0 |
| ASP.NET Core gRPC Service | [`grpc`](#web-others) | [C#] | Web/gRPC | 3.0 |
| dotnet gitignore file | `gitignore` | | Config | 3.0 |
| global.json file | [`globaljson`](#globaljson) | | Config | 2.0 |
| NuGet Config | `nugetconfig` | | Config | 1.0 |
| Dotnet local tool manifest file | `tool-manifest` | | Config | 3.0 |
| Web Config | `webconfig` | | Config | 1.0 |
| Solution File | `sln` | | Solution | 1.0 |
| Protocol Buffer File | [`proto`](#namespace) | | Web/gRPC | 3.0 |
| EditorConfig file | `editorconfig`(#editorconfig) | | Config | 6.0 |
| Templates | Short name | Language | Tags | Introduced |
|----------------------------------------------|---------------------------------------|--------------|---------------------------------------|------------------|
| Console Application | [`console`](#console) | [C#], F#, VB | Common/Console | 1.0 |
| Class library | [`classlib`](#classlib) | [C#], F#, VB | Common/Library | 1.0 |
| WPF Application | [`wpf`](#wpf) | [C#], VB | Common/WPF | 3.0 (5.0 for VB) |
| WPF Class library | [`wpflib`](#wpf) | [C#], VB | Common/WPF | 3.0 (5.0 for VB) |
| WPF Custom Control Library | [`wpfcustomcontrollib`](#wpf) | [C#], VB | Common/WPF | 3.0 (5.0 for VB) |
| WPF User Control Library | [`wpfusercontrollib`](#wpf) | [C#], VB | Common/WPF | 3.0 (5.0 for VB) |
| Windows Forms (WinForms) Application | [`winforms`](#winforms) | [C#], VB | Common/WinForms | 3.0 (5.0 for VB) |
| Windows Forms (WinForms) Class library | [`winformslib`](#winforms) | [C#], VB | Common/WinForms | 3.0 (5.0 for VB) |
| Worker Service | [`worker`](#web-others) | [C#] | Common/Worker/Web | 3.0 |
| Unit Test Project | [`mstest`](#test) | [C#], F#, VB | Test/MSTest | 1.0 |
| NUnit 3 Test Project | [`nunit`](#nunit) | [C#], F#, VB | Test/NUnit | 2.1.400 |
| NUnit 3 Test Item | `nunit-test` | [C#], F#, VB | Test/NUnit | 2.2 |
| xUnit Test Project | [`xunit`](#test) | [C#], F#, VB | Test/xUnit | 1.0 |
| Razor Component | `razorcomponent` | [C#] | Web/ASP.NET | 3.0 |
| Razor Page | [`page`](#page) | [C#] | Web/ASP.NET | 2.0 |
| MVC ViewImports | [`viewimports`](#namespace) | [C#] | Web/ASP.NET | 2.0 |
| MVC ViewStart | `viewstart` | [C#] | Web/ASP.NET | 2.0 |
| Blazor Server App | [`blazorserver`](#blazorserver) | [C#] | Web/Blazor | 3.0 |
| Blazor Server App Empty | [`blazorserver-empty`](#blazorserver) | [C#] | Web/Blazor | 7.0 |
| Blazor WebAssembly App | [`blazorwasm`](#blazorwasm) | [C#] | Web/Blazor/WebAssembly | 3.1.300 |
| Blazor WebAssembly App Empty | [`blazorwasm-empty`](#blazorwasm) | [C#] | Web/Blazor/WebAssembly | 7.0 |
| ASP.NET Core Empty | [`web`](#web) | [C#], F# | Web/Empty | 1.0 |
| ASP.NET Core Web App (Model-View-Controller) | [`mvc`](#web-options) | [C#], F# | Web/MVC | 1.0 |
| ASP.NET Core Web App | [`webapp, razor`](#web-options) | [C#] | Web/MVC/Razor Pages | 2.2, 2.0 |
| ASP.NET Core with Angular | [`angular`](#spa) | [C#] | Web/MVC/SPA | 2.0 |
| ASP.NET Core with React.js | [`react`](#spa) | [C#] | Web/MVC/SPA | 2.0 |
| ASP.NET Core with React.js and Redux | [`reactredux`](#reactredux) | [C#] | Web/MVC/SPA | 2.0 |
| Razor Class Library | [`razorclasslib`](#razorclasslib) | [C#] | Web/Razor/Library/Razor Class Library | 2.1 |
| ASP.NET Core Web API | [`webapi`](#webapi) | [C#], F# | Web/WebAPI | 1.0 |
| ASP.NET Core gRPC Service | [`grpc`](#web-others) | [C#] | Web/gRPC | 3.0 |
| dotnet gitignore file | `gitignore` | | Config | 3.0 |
| global.json file | [`globaljson`](#globaljson) | | Config | 2.0 |
| NuGet Config | `nugetconfig` | | Config | 1.0 |
| Dotnet local tool manifest file | `tool-manifest` | | Config | 3.0 |
| Web Config | `webconfig` | | Config | 1.0 |
| Solution File | `sln` | | Solution | 1.0 |
| Protocol Buffer File | [`proto`](#namespace) | | Web/gRPC | 3.0 |
| EditorConfig file | `editorconfig`(#editorconfig) | | Config | 6.0 |

## Template options

Expand Down Expand Up @@ -331,6 +333,7 @@ The ability to create a project for an earlier TFM depends on having that versio

| SDK version | Default value |
|-------------|-----------------|
| 7.0 | `net7.0` |
| 6.0 | `net6.0` |
| 5.0 | `net5.0` |
| 3.1 | `netcoreapp3.1` |
Expand Down