Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/core/tools/dotnet-new-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
>
Expand Down
Loading