Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

8 lines (8 sloc) 425 Bytes
Param(
[Parameter(Mandatory = $true)]
[System.Version] $Version
)
try {
Invoke-WebRequest "https://dist.nuget.org/win-x86-commandline/v$Version/nuget.exe" -OutFile "$env:BUILD_BINARIESDIRECTORY\nuget.exe"
Write-Host "##vso[task.setvariable variable=Path;]$env:BUILD_BINARIESDIRECTORY;$env:Path"
}catch {Write-Error -Message "Failed to download nuget.exe from $urlPrefix. $($_.Exception.Message)" -ErrorAction Stop}
You can’t perform that action at this time.