dotnet tool restore
本文适用于: ✔️ .NET Core 3.0 SDK 及更高版本
“属性”
dotnet tool restore
- 在计算机上安装当前目录范围内的 .NET Core 本地工具。
摘要
dotnet tool restore <PACKAGE_NAME>
[--configfile] [--add-source] [tool-manifest]
[--disable-parallel] [--ignore-failed-sources]
[--no-cache] [-interactive] [-v|--verbosity]
dotnet tool restore <-h|--help>
描述
dotnet tool restore
命令查找当前目录范围内的工具清单文件,并安装其中列出的工具。 有关清单文件的信息,请参阅安装本地工具和调用本地工具。
自变量
PACKAGE_NAME
包含要安装的 .NET Core 工具的 NuGet 包的名称/ID。
选项
--configfile <FILE>
要使用的 NuGet 配置 (nuget.config) 文件。
--add-source <SOURCE>
添加安装过程中要使用的其他 NuGet 包源。
--tool-manifest <PATH>
清单文件的路径。
--disable-parallel
防止并行还原多个项目。
--ignore-failed-sources
将包源失败视为警告。
--no-cache
不要缓存包和 HTTP 请求。
--interactive
允许命令停止并等待用户输入或操作(例如,完成身份验证)。
-h|--help
打印出有关命令的简短帮助。
-v|--verbosity <LEVEL>
设置命令的详细级别。 允许使用的值为
q[uiet]
、m[inimal]
、n[ormal]
、d[etailed]
和diag[nostic]
。
示例
dotnet tool restore
还原当前目录的本地工具。