Skip to content

Add no-locs #22874

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 17, 2021
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
110 changes: 55 additions & 55 deletions docs/core/tools/dotnet-new.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,43 +50,43 @@ The command calls the [template engine](https://github.com/dotnet/templating) to

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

## Options

Expand Down Expand Up @@ -159,7 +159,7 @@ The command calls the [template engine](https://github.com/dotnet/templating) to

Each project template may have additional options available. The core templates have the following additional options:

### console
### :::no-loc text="console":::

- **`-f|--framework <FRAMEWORK>`**

Expand All @@ -185,7 +185,7 @@ Each project template may have additional options available. The core templates

***

### classlib
### :::no-loc text="classlib":::

- **`-f|--framework <FRAMEWORK>`**

Expand All @@ -203,7 +203,7 @@ Each project template may have additional options available. The core templates

***

### <a name="wpf"></a> wpf, wpflib, wpfcustomcontrollib, wpfusercontrollib
### <a name="wpf"></a> :::no-loc text="wpf, wpflib, wpfcustomcontrollib, wpfusercontrollib":::

- **`-f|--framework <FRAMEWORK>`**

Expand All @@ -221,7 +221,7 @@ Each project template may have additional options available. The core templates

***

### <a name="winforms"></a> winforms, winformslib
### <a name="winforms"></a> :::no-loc text="winforms, winformslib":::

- **`--langVersion <VERSION_NUMBER>`**

Expand All @@ -235,7 +235,7 @@ Each project template may have additional options available. The core templates

***

### <a name="web-others"></a> worker, grpc
### <a name="web-others"></a> :::no-loc text="worker, grpc":::

- **`-f|--framework <FRAMEWORK>`**

Expand All @@ -251,7 +251,7 @@ Each project template may have additional options available. The core templates

***

### <a name="test"></a> mstest, xunit
### <a name="test"></a> :::no-loc text="mstest, xunit:::no-loc text="

- **`-f|--framework <FRAMEWORK>`**

Expand All @@ -275,7 +275,7 @@ Each project template may have additional options available. The core templates

***

### nunit
### :::no-loc text="nunit":::

- **`-f|--framework <FRAMEWORK>`**

Expand All @@ -301,7 +301,7 @@ Each project template may have additional options available. The core templates

***

### page
### :::no-loc text="page":::

- **`-na|--namespace <NAMESPACE_NAME>`**

Expand All @@ -313,15 +313,15 @@ Each project template may have additional options available. The core templates

***

### <a name="namespace"></a> viewimports, proto
### <a name="namespace"></a> :::no-loc text="viewimports, proto":::

- **`-na|--namespace <NAMESPACE_NAME>`**

Namespace for the generated code. The default value is `MyApp.Namespace`.

***

### blazorserver
### :::no-loc text="blazorserver":::

- **`-au|--auth <AUTHENTICATION_TYPE>`**

Expand Down Expand Up @@ -392,7 +392,7 @@ Each project template may have additional options available. The core templates

***

### blazorwasm
### :::no-loc text="blazorwasm":::

- **`-f|--framework <FRAMEWORK>`**

Expand Down Expand Up @@ -496,7 +496,7 @@ Each project template may have additional options available. The core templates

***

### web
### :::no-loc text="web":::

- **`--exclude-launch-settings`**

Expand Down Expand Up @@ -525,7 +525,7 @@ Each project template may have additional options available. The core templates

***

### <a name="web-options"></a> mvc, webapp
### <a name="web-options"></a> :::no-loc text="mvc, webapp":::

- **`-au|--auth <AUTHENTICATION_TYPE>`**

Expand Down Expand Up @@ -616,7 +616,7 @@ Each project template may have additional options available. The core templates

***

### <a name="spa"></a> angular, react
### <a name="spa"></a> :::no-loc text="angular, react":::

- **`-au|--auth <AUTHENTICATION_TYPE>`**

Expand Down Expand Up @@ -658,7 +658,7 @@ Each project template may have additional options available. The core templates

***

### reactredux
### :::no-loc text="reactredux":::

- **`--exclude-launch-settings`**

Expand Down Expand Up @@ -687,7 +687,7 @@ Each project template may have additional options available. The core templates

***

### razorclasslib
### :::no-loc text="razorclasslib":::

- **`--no-restore`**

Expand All @@ -699,7 +699,7 @@ Each project template may have additional options available. The core templates

***

### webapi
### :::no-loc text="webapi":::

- **`-au|--auth <AUTHENTICATION_TYPE>`**

Expand Down Expand Up @@ -769,7 +769,7 @@ Each project template may have additional options available. The core templates

***

### globaljson
### :::no-loc text="globaljson":::

- **`--sdk-version <VERSION_NUMBER>`**

Expand Down