不足している NuGet パッケージをインストールまたは復元します。
重要
このタスクは非推奨です。 これを使用するビルドは、2023 年 11 月 27 日に中断されます。 できるだけ早く NuGetCommand@2の restore
オプションを使用するように切り替えてください。 詳細については、「NuGetInstaller@0 または NuGetRestore@1 からの移行」を参照してください。
不足している NuGet パッケージをインストールまたは復元します。
このタスクは非推奨です。
NuGetCommand@2の restore
オプションを使用します。
不足している NuGet パッケージをインストールまたは復元します。 最新の機能NuGetAuthenticate@0タスクを使用します。
構文
# NuGet Installer v0
# Installs or restores missing NuGet packages. Use NuGetAuthenticate@0 task for latest capabilities.
- task: NuGetInstaller@0
inputs:
solution: '**/*.sln' # string. Required. Path to solution or packages.config. Default: **/*.sln.
#nugetConfigPath: # string. Path to NuGet.config.
restoreMode: 'restore' # 'restore' | 'install'. Required. Installation type. Default: restore.
#noCache: false # boolean. Disable local cache. Default: false.
#nuGetRestoreArgs: # string. NuGet arguments.
# Advanced
#verbosity: '-' # '-' | 'Quiet' | 'Normal' | 'Detailed'. Verbosity. Default: -.
nuGetVersion: '3.3.0' # '3.3.0' | '3.5.0.1829' | '4.0.0.2283' | 'custom'. Required. NuGet Version. Default: 3.3.0.
#nuGetPath: # string. Path to NuGet.exe.
入力
solution
-
ソリューションまたは packages.config へのパス
string
。 必須。 既定値: **/*.sln
.
Visual Studio ソリューション ファイルまたは NuGet packages.configへのパス。
NuGet.config へのパスの
string
。
-ConfigFile NuGet.exe コマンド ライン引数と同じです。
restoreMode
-
インストールの種類
string
。 必須。 使用できる値: restore
、install
。 既定値: restore
.
復元では、ソリューションが依存するパッケージが復元され、通常は必要です。
インストールすると、packages.config ファイルからパッケージがインストールされます。 スタンドアロン ツール パッケージをインストールする場合は、このオプションを使用します。
noCache
-
ローカル キャッシュの を無効にする
boolean
。 既定値: false
.
-NoCache NuGet.exe コマンド ライン引数と同じです。
verbosity
-
詳細度
string
。 使用できる値: -
、Quiet
、Normal
、Detailed
。 既定値: -
.
NuGet の詳細レベル。
NuGet バージョンの nuGetVersion
-
string
。 必須。 使用できる値: 3.3.0
、3.5.0.1829
(3.5.0)、4.0.0.2283
(4.0.0)、custom
。 既定値: 3.3.0
.
使用する NuGet のバージョン、または外部バージョン。
NuGet.exeへのパスの nuGetPath
-
string
。
必要に応じて、NuGet.exeへのパスを指定します。 バージョンの選択をオーバーライドします。
タスク コントロールのオプション
すべてのタスクには、タスク入力に加えて制御オプションがあります。 詳細については、「コントロール オプションと一般的なタスク プロパティを参照してください。
出力変数
なし。