共用方式為


dotnet nuget 啟用來源

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

名稱

dotnet nuget enable source - 啟用 NuGet 來源。

概要

dotnet nuget enable source <NAME> [--configfile <FILE>]

dotnet nuget enable source -h|--help

Description

此命令會在 dotnet nuget enable source NuGet 組態檔中啟用現有的來源。

Arguments

  • NAME

    來源的名稱。

選項

  • --configfile <FILE>使用 NuGet 設定檔(nuget.config) 若已指定,僅會使用此檔案中的設定。 若未指定,則將使用當前目錄中組態檔的階層。 如需詳細資訊,請參閱 一般 NuGet 組態

範例

  • 啟用名稱 mySource為 :

    dotnet nuget enable source mySource
    

另請參閱