Skip to content

Commit 2a4873a

Browse files
authored
Wrong cli argument for listing templates
The guide uses a non-existant `dotnet new -all` command to list available templates. I fixed it to `dotnet new -l`, fixed the example command output and changed "project types" to "templates" in the command explanation
1 parent 4c88540 commit 2a4873a

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

Diff for: doc_source/csharp-package-cli.md

+6-10
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,19 @@
22

33
The \.NET Core CLI offers a cross\-platform way for you to create \.NET\-based Lambda applications\. This section assumes that you have installed the \.NET Core CLI\. If you haven't, see [Download \.NET](https://dotnet.microsoft.com/download) on the Microsoft website\.
44

5-
In the \.NET CLI, you use the `new` command to create \.NET projects from a command line\. This is useful if you want to create a project outside of Visual Studio\. To view a list of the available project types, open a command line, navigate to where you installed the \.NET Core runtime, and then run the following command:
5+
In the \.NET CLI, you use the `new` command to create \.NET projects from a command line\. This is useful if you want to create a project outside of Visual Studio\. To view a list of the available templates, open a command line, navigate to where you installed the \.NET Core runtime, and then run the following command:
66

77
```
8-
dotnet new -all
9-
Usage: new [options]
10-
...
11-
Templates Short Name Language Tags
8+
dotnet new -l
9+
These templates matched your input:
10+
11+
Template Name Short Name Language Tags
1212
----------------------------------------------------------------------------------------------------------------------------
1313
Console Application console [C#], F#, VB Common/Console
1414
Class library classlib [C#], F#, VB Common/Library
1515
Unit Test Project mstest [C#], F#, VB Test/MSTest
1616
xUnit Test Project xunit [C#], F#, VB Test/xUnit
1717
...
18-
Examples:
19-
dotnet new mvc --auth Individual
20-
dotnet new viewstart
21-
dotnet new --help
2218
```
2319

2420
Lambda offers additional templates via the [Amazon\.Lambda\.Templates](https://www.nuget.org/packages/Amazon.Lambda.Templates) NuGet package\. To install this package, run the following command:
@@ -189,4 +185,4 @@ Log Tail:
189185
START RequestId: id Version: $LATEST
190186
END RequestId: id
191187
REPORT RequestId: id Duration: 0.99 ms Billed Duration: 1 ms Memory Size: 256 MB Max Memory Used: 12 MB
192-
```
188+
```

0 commit comments

Comments
 (0)