【问题标题】:Are the dotnet utilities (dnu) retired? What replaces the global commands?dotnet 实用程序 (dnu) 是否已退役?什么取代了全局命令?
【发布时间】:2016-11-22 17:21:47
【问题描述】:

Following the sphinx-autoapi integration with docfx guide,他们建议使用以下命令安装docfx:

使用 DNU 安装 DocFX(已弃用?)

dnu commands install docfx

DNU 是否已退休 - 我刚刚使用 chocolatey,但似乎全局命令已在 .NET Core CLI 中删除。希望有人能确认what happened to .NET Utilities。

使用 Chocolatey 安装 DocFX

choco install docfx

【问题讨论】:

标签: python-sphinx chocolatey dnu .net-core docfx


【解决方案1】:

dnvm repository 说它已经过时,但dotnet repository 并没有真正提供命令翻译。这个关于迁移的Microsoft article 表示没有等效的dotnet install 命令。

安装依赖项

从 v1 开始,.NET Core CLI 工具没有用于安装依赖项的 install 命令。为了从 NuGet 安装包,您需要将其作为依赖项添加到 project.json 文件中,然后运行 ​​dotnet restore。

此other answer 确认它已过时/已替换,但 dnu/dnx 仍可使用。

【讨论】:

猜你喜欢
  • 2015-02-27
  • 2013-09-12
  • 2011-02-22
  • 2013-08-08
  • 1970-01-01
  • 2019-06-28
  • 2011-03-28
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多