本文适用于:✔️ .NET 6 SDK 及更高版本
Name
dotnet nuget disable source - 禁用 NuGet 源。
概要
dotnet nuget disable source <NAME> [--configfile <FILE>]
dotnet nuget disable source -h|--help
Description
该 dotnet nuget disable source 命令禁用 NuGet 配置文件中的现有源。
Arguments
NAME源的名称。
选项
-
--configfile <FILE>要使用的 NuGet 配置文件(nuget.config)。 如果指定,则只使用此文件中的设置。 如果不指定,将使用当前目录中的配置文件的层次结构。 有关详细信息,请参阅 常见 NuGet 配置。
例子
禁用名称为
mySource:dotnet nuget disable source mySource