From 8987917a4ff5a9751037a85b514be05597e3e88b Mon Sep 17 00:00:00 2001 From: Tom Dykstra Date: Mon, 27 Mar 2023 14:09:14 -0700 Subject: [PATCH 1/3] Explain `using` for `System.Reflection` --- docs/core/tools/global-tools-how-to-create.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/core/tools/global-tools-how-to-create.md b/docs/core/tools/global-tools-how-to-create.md index 12090ac926460..6136279250dd4 100644 --- a/docs/core/tools/global-tools-how-to-create.md +++ b/docs/core/tools/global-tools-how-to-create.md @@ -63,7 +63,7 @@ This is the first in a series of three tutorials. In this tutorial, you create a ```csharp using System.Reflection; - namespace TeleprompterConsole; + namespace microsoft.botsay; internal class Program { @@ -74,6 +74,8 @@ This is the first in a series of three tutorials. In this tutorial, you create a } ``` + The `using System.Reflection;` statement is needed by code that you add in the next step. + 1. Replace the `Main` method with the following code to process the command-line arguments for the application. ```csharp @@ -81,7 +83,7 @@ This is the first in a series of three tutorials. In this tutorial, you create a { if (args.Length == 0) { - var versionString = Assembly.GetEntryAssembly()? + var versionString = System.Reflection.Assembly.GetEntryAssembly()? .GetCustomAttribute()? .InformationalVersion .ToString(); From 439a8b67d3ca42aabe3947ed88c5d1b107ab7779 Mon Sep 17 00:00:00 2001 From: Tom Dykstra Date: Mon, 27 Mar 2023 15:48:30 -0700 Subject: [PATCH 2/3] Update docs/core/tools/global-tools-how-to-create.md --- docs/core/tools/global-tools-how-to-create.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/tools/global-tools-how-to-create.md b/docs/core/tools/global-tools-how-to-create.md index 6136279250dd4..3acbc83ecd3f8 100644 --- a/docs/core/tools/global-tools-how-to-create.md +++ b/docs/core/tools/global-tools-how-to-create.md @@ -83,7 +83,7 @@ This is the first in a series of three tutorials. In this tutorial, you create a { if (args.Length == 0) { - var versionString = System.Reflection.Assembly.GetEntryAssembly()? + var versionString = Assembly.GetEntryAssembly()? .GetCustomAttribute()? .InformationalVersion .ToString(); From 2b2d9e5940d4be2ea62664916991a01fd9ebfd6f Mon Sep 17 00:00:00 2001 From: Tom Dykstra Date: Mon, 27 Mar 2023 20:51:05 -0700 Subject: [PATCH 3/3] Update docs/core/tools/global-tools-how-to-create.md Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com> --- docs/core/tools/global-tools-how-to-create.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/tools/global-tools-how-to-create.md b/docs/core/tools/global-tools-how-to-create.md index 3acbc83ecd3f8..8cad5f15dc3ca 100644 --- a/docs/core/tools/global-tools-how-to-create.md +++ b/docs/core/tools/global-tools-how-to-create.md @@ -74,7 +74,7 @@ This is the first in a series of three tutorials. In this tutorial, you create a } ``` - The `using System.Reflection;` statement is needed by code that you add in the next step. + The `using System.Reflection;` directive is needed by code that you add in the next step. 1. Replace the `Main` method with the following code to process the command-line arguments for the application.