共用方式為


dotnet nuget 禁用來源disable source

此文章適用於:✔️ .NET 6 SDK 與更新版本

名稱

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
    

另請參閱