【发布时间】:2021-08-31 22:24:47
【问题描述】:
我已经安装了一系列 dotnet 模板供使用
dotnet new
通过使用 cli 选项,例如
dotnet new -i Microsoft.DotNet.Web.Spa.ProjectTemplates::2.0.0
或
dotnet new -i Microsoft.DotNet.Web.Spa.ProjectTemplates::*
如此处所述Available-templates-for-dotnet-new
如何列出我已安装的模板版本? 的输出
dotnet new
不显示当前版本的模板
╔══════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ Templates Short Name Language Tags ║
╠══════════════════════════════════════════════════════════════════════════════════════════════════════════════════╣
║ ---------------------------------------------------------------------------------------------------------------- ║
║ Console Application console [C#], F#, VB Common/Console ║
║ Class library classlib [C#], F#, VB Common/Library ║
╚══════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
【问题讨论】:
-
我愿意 >dotnet new -u 这列出了所有模板和版本以及正确的名称,以便根据需要卸载模板。