From 059aaf270be4d2bcd713d5c7fd8de343fa5e3841 Mon Sep 17 00:00:00 2001 From: Andrii Kurdiumov Date: Tue, 20 Jul 2021 14:45:31 +0600 Subject: [PATCH 1/2] Add instructions for disabling top-level imports --- docs/core/tutorials/top-level-templates.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/core/tutorials/top-level-templates.md b/docs/core/tutorials/top-level-templates.md index a3d5feb58fbf1..29595ccc4c2d6 100644 --- a/docs/core/tutorials/top-level-templates.md +++ b/docs/core/tutorials/top-level-templates.md @@ -57,3 +57,5 @@ These two features simplify the code that makes up your application. To follow a If you'd prefer to use the older format, you can copy the code from the second example in this article, and continue the tutorial as before. You can learn more about top-level statements in the tutorial exploration on [top level statements](../../csharp/whats-new/tutorials/top-level-statements.md). + +If you want to opt-out of that behaviour and manually control all namespaces in your project. Add `true` in the project file. From db1d36f95dc4f1fc84117aee44f65322c2fd10d0 Mon Sep 17 00:00:00 2001 From: Tom Dykstra Date: Thu, 5 Aug 2021 09:28:17 -0700 Subject: [PATCH 2/2] Update docs/core/tutorials/top-level-templates.md --- docs/core/tutorials/top-level-templates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/tutorials/top-level-templates.md b/docs/core/tutorials/top-level-templates.md index 29595ccc4c2d6..74850c9d8c373 100644 --- a/docs/core/tutorials/top-level-templates.md +++ b/docs/core/tutorials/top-level-templates.md @@ -58,4 +58,4 @@ If you'd prefer to use the older format, you can copy the code from the second e You can learn more about top-level statements in the tutorial exploration on [top level statements](../../csharp/whats-new/tutorials/top-level-statements.md). -If you want to opt-out of that behaviour and manually control all namespaces in your project. Add `true` in the project file. +If you want to opt-out of that behavior and manually control all namespaces in your project, add [`true`](../project-sdk/msbuild-props.md#disableimplicitnamespaceimports) in the project file.