mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
Add NuGet.exe on Windows Server 2016/2019 (#1049)
* Add NuGet.CommandLine * remove temporary path update
This commit is contained in:
committed by
GitHub
parent
4bc0c4348d
commit
ebadb5cea8
16
images/win/scripts/Installers/Install-Nuget.ps1
Normal file
16
images/win/scripts/Installers/Install-Nuget.ps1
Normal file
@@ -0,0 +1,16 @@
|
||||
################################################################################
|
||||
## File: Install-Nuget.ps1
|
||||
## Desc: Install NuGet.CommandLine
|
||||
################################################################################
|
||||
|
||||
Choco-Install -PackageName NuGet.CommandLine
|
||||
|
||||
if (Get-Command -Name 'nuget.exe')
|
||||
{
|
||||
Write-Host 'nuget on path'
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host 'nuget is not on path'
|
||||
exit 1
|
||||
}
|
||||
Reference in New Issue
Block a user