You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/core/tools/global-tools-how-to-create.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,13 @@ This tutorial teaches you how to create and package a .NET tool. The .NET CLI le
13
13
14
14
The tool that you'll create is a console application that takes a message as input and displays the message along with lines of text that create the image of a robot.
15
15
16
-
This is the first in a series of three tutorials. In this tutorial, you create and package a tool. In the next two tutorials you [use the tool as a global tool](global-tools-how-to-use.md) and [use the tool as a local tool](local-tools-how-to-use.md).
16
+
This is the first in a series of three tutorials. In this tutorial, you create and package a tool. In the next two tutorials you [use the tool as a global tool](global-tools-how-to-use.md) and [use the tool as a local tool](local-tools-how-to-use.md). The procedures for creating a tool are the same whether you use it as a global tool or as a local tool.
17
17
18
18
## Prerequisites
19
19
20
-
-[.NET Core SDK 3.1](https://dotnet.microsoft.com/download) or a later version.
20
+
-[.NET SDK 5.0](https://dotnet.microsoft.com/download) or a later version.
21
21
22
-
This tutorial and the following [tutorial for global tools](global-tools-how-to-use.md) apply to .NET Core SDK 2.1 and later versions because global tools are available starting in that version. But this tutorial assumes you have installed 3.1 or later so that you have the option of continuing on to the [local tools tutorial](local-tools-how-to-use.md). Local tools are available starting in .NET Core SDK 3.0. The procedures for creating a tool are the same whether you use it as a global tool or as a local tool.
22
+
This tutorial uses .NET SDK 5.0, but global tools are available starting in .NET Core SDK 2.1. Local tools are available starting in .NET Core SDK 3.0.
23
23
24
24
- A text editor or code editor of your choice.
25
25
@@ -153,7 +153,7 @@ Before you can pack and distribute the application as a tool, you need to modify
153
153
154
154
`<ToolCommandName>` is an optional element that specifies the command that will invoke the tool after it's installed. If this element isn't provided, the command name for the tool is the project file name without the *.csproj* extension.
155
155
156
-
`<PackageOutputPath>` is an optional element that determines where the NuGet package will be produced. The NuGet package is what the .NET Core CLI uses to install your tool.
156
+
`<PackageOutputPath>` is an optional element that determines where the NuGet package will be produced. The NuGet package is what the .NET CLI uses to install your tool.
157
157
158
158
The project file now looks like the following example:
159
159
@@ -163,7 +163,7 @@ Before you can pack and distribute the application as a tool, you need to modify
Copy file name to clipboardExpand all lines: docs/core/tools/local-tools-how-to-use.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: "Tutorial: Install and use .NET local tools"
3
3
description: Learn how to install and use a .NET tool as a local tool.
4
4
ms.topic: tutorial
5
-
ms.date: 02/12/2020
5
+
ms.date: 12/11/2020
6
6
---
7
7
8
8
# Tutorial: Install and use a .NET local tool using the .NET CLI
@@ -167,7 +167,7 @@ You typically install a local tool in the root directory of the repository. Afte
167
167
168
168
## Update a local tool
169
169
170
-
The installed version of local tool `dotnetsay` is 2.1.3. The latest version is 2.1.4. Use the [dotnet tool update](dotnet-tool-update.md) command to update the tool to the latest version.
170
+
The installed version of local tool `dotnetsay` is 2.1.3. Use the [dotnet tool update](dotnet-tool-update.md) command to update the tool to the latest version.
171
171
172
172
```dotnetcli
173
173
dotnet tool update dotnetsay
@@ -176,7 +176,7 @@ dotnet tool update dotnetsay
176
176
The output indicates the new version number:
177
177
178
178
```console
179
-
Tool 'dotnetsay' was successfully updated from version '2.1.3' to version '2.1.4'
179
+
Tool 'dotnetsay' was successfully updated from version '2.1.3' to version '2.1.7'
Copy file name to clipboardExpand all lines: docs/core/tutorials/cli-templates-create-item-template.md
+31-33Lines changed: 31 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
1
---
2
-
title: Create an item template for dotnet new - .NET Core CLI
2
+
title: Create an item template for dotnet new - .NET CLI
3
3
description: Learn how to create an item template for the dotnet new command. Item templates can contain any number of files.
4
4
author: adegeo
5
-
ms.date: 06/25/2019
5
+
ms.date: 12/11/2020
6
6
ms.topic: tutorial
7
7
ms.author: adegeo
8
8
---
9
9
10
10
# Tutorial: Create an item template
11
11
12
-
With .NET Core, you can create and deploy templates that generate projects, files, even resources. This tutorial is part one of a series that teaches you how to create, install, and uninstall, templates for use with the `dotnet new` command.
12
+
With .NET, you can create and deploy templates that generate projects, files, even resources. This tutorial is part one of a series that teaches you how to create, install, and uninstall templates for use with the `dotnet new` command.
13
13
14
14
In this part of the series, you'll learn how to:
15
15
@@ -23,7 +23,7 @@ In this part of the series, you'll learn how to:
23
23
24
24
## Prerequisites
25
25
26
-
*[.NET Core 2.2 SDK](https://dotnet.microsoft.com/download) or later versions.
26
+
*[.NET 5.0 SDK](https://dotnet.microsoft.com/download) or a later version.
27
27
* Read the reference article [Custom templates for dotnet new](../tools/custom-templates.md).
28
28
29
29
The reference article explains the basics about templates and how they're put together. Some of this information will be reiterated here.
@@ -80,7 +80,7 @@ Now that you have the content of the template created, you need to create the te
80
80
81
81
## Create the template config
82
82
83
-
Templates are recognized in .NET Core by a special folder and config file that exist at the root of your template. In this tutorial, your template folder is located at _working\templates\extensions_.
83
+
Templates are recognized by a special folder and config file that exist at the root of your template. In this tutorial, your template folder is located at _working\templates\extensions_.
84
84
85
85
When you create a template, all files and folders in the template folder are included as part of the template except for the special config folder. This config folder is named _.template.config_.
86
86
@@ -111,7 +111,7 @@ Open the _template.json_ with your favorite text editor and paste in the followi
111
111
}
112
112
```
113
113
114
-
This config file contains all the settings for your template. You can see the basic settings, such as `name` and `shortName`, but there's also a `tags/type` value that is set to `item`. This categorizes your template as an item template. There's no restriction on the type of template you create. The `item` and `project` values are common names that .NET Core recommends so that users can easily filter the type of template they're searching for.
114
+
This config file contains all the settings for your template. You can see the basic settings, such as `name` and `shortName`, but there's also a `tags/type` value that is set to `item`. This categorizes your template as an item template. There's no restriction on the type of template you create. The `item` and `project` values are common names that .NET recommends so that users can easily filter the type of template they're searching for.
115
115
116
116
The `classifications` item represents the **tags** column you see when you run `dotnet new` and get a list of templates. Users can also search based on classification tags. Don't confuse the `tags` property in the \*.json file with the `classifications` tags list. They're two different things unfortunately named similarly. The full schema for the *template.json* file is found at the [JSON Schema Store](http://json.schemastore.org/template). For more information about the *template.json* file, see the [dotnet templating wiki](https://github.com/dotnet/templating/wiki).
Class library classlib [C#], F#, VB Common/Library
140
+
WPF Application wpf [C#], VB Common/WPF
143
141
```
144
142
145
143
## Test the item template
@@ -204,11 +202,11 @@ You get the following output.
204
202
!dlroW olleH
205
203
```
206
204
207
-
Congratulations! You created and deployed an item template with .NET Core. In preparation for the next part of this tutorial series, you must uninstall the template you created. Make sure to delete all files from the _test_ folder too. This will get you back to a clean state ready for the next major section of this tutorial.
205
+
Congratulations! You created and deployed an item template with .NET. In preparation for the next part of this tutorial series, you must uninstall the template you created. Make sure to delete all files from the _test_ folder too. This will get you back to a clean state ready for the next major section of this tutorial.
208
206
209
207
## Uninstall the template
210
208
211
-
Because you installed the template by file path, you must uninstall it with the **absolute** file path. You can see a list of templates installed by running the `dotnet new -u` command. Your template should be listed last. Use the path listed to uninstall your template with the `dotnet new -u <ABSOLUTE PATH TO TEMPLATE DIRECTORY>` command.
209
+
Because you installed the template by file path, you must uninstall it with the **absolute** file path. You can see a list of templates installed by running the `dotnet new -u` command. Your template should be listed last. Use the `Uninstall Command`listed to uninstall your template.
212
210
213
211
```dotnetcli
214
212
dotnet new -u
@@ -220,31 +218,31 @@ You get output similar to the following.
0 commit comments