【问题标题】:There is no template in my dotnet我的 dotnet 中没有模板
【发布时间】:2018-04-26 04:55:08
【问题描述】:

我已经在我的 Ubuntu 18.04 上安装了 dotnet-sdk-2.1.105,但是当我使用命令 dotnet new 时,我发现那里没有模板 The list of templates is at the bottom, but it's empty and no template in there

【问题讨论】:

  • 如果按照用法文本中列出的方式运行 dotnet new --list 会怎样?
  • 还是什么都没有。我尝试使用命令dotnet new console -o myApp 创建一个新的控制台应用程序并收到错误消息:没有模板与输入模板名称匹配:控制台。
  • 同一台机器上还有其他版本的sdk吗? dotnet --version 是否返回预期版本?您是否尝试过重新安装 sdk?

标签: ubuntu .net-core template-engine


【解决方案1】:

我已通过使用以前版本的 dotnet sdk 和 dotnet 运行时解决了我的问题。

【讨论】:

    猜你喜欢
    • 2022-01-10
    • 2022-07-20
    • 2013-01-23
    • 1970-01-01
    • 2021-08-30
    • 2019-10-06
    • 1970-01-01
    • 1970-01-01
    • 2022-10-14
    相关资源
    最近更新 更多