diff --git a/docs/core/tools/dotnet-new-list.md b/docs/core/tools/dotnet-new-list.md index 2c80246e968ed..93baef7e79690 100644 --- a/docs/core/tools/dotnet-new-list.md +++ b/docs/core/tools/dotnet-new-list.md @@ -26,6 +26,9 @@ The `dotnet new list` command lists available templates to use with `dotnet new` Starting with .NET SDK 7.0.100, the `list` command might not show all the templates installed on the machine. It takes the result of template constraints into account, and the templates that can't be used won't be shown. To force show all the templates, use the `--ignore-constraints` option. +> [!WARNING] +> To limit the list of templates to those that are relevant, .NET walks up the current tree to find a .NET project to scope the list of templates. Ensure you only run `dotnet new` commands from trusted directories. + > [!NOTE] > [!INCLUDE [new syntax](includes/dotnet-new-7-0-syntax.md)] >