运行 dotnet new 时显示可用的模板参数

发布于 2025-01-19 12:40:04 字数 99 浏览 2 评论 0原文

我想在运行命令 dotnet new MyTemplate 时查看所有可用的模板参数。

我该怎么做呢?我知道当我错过一些必需的参数时我就会看到它

I want to see all available template parameters when I run command dotnet new MyTemplate.

How can I do it? I know when I miss some required param then I see it

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

最美的太阳 2025-01-26 12:40:04

添加- 帮助到结尾。

dotnet new MyTemplate --help

这显示了该模板的特定帮助信息。 - 帮助可以在dotnet命令的其他级别上使用。

Add --help to the end.

dotnet new MyTemplate --help

This shows the specific help information for that template. --help can be used on other levels of dotnet commands.

止于盛夏 2025-01-26 12:40:04

continue

You can do -l or --list to see all available templates:

dotnet new -l

In general if you want to know the available options for a command you can call the help:

dotnet new -h
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文