azure-pipelines.yml [166:197]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - powershell: |
      $ErrorActionPreference = "Stop"

      function Download-ToTemp
      {
          param
          (
              [Parameter(Mandatory)]
              [string] $url,
              [string] $filename
          )

          if (-not ($filename))
          {
              $filename = Split-Path -Path $url -Leaf
          }

          if (-not ($filename))
          {
              Write-Error "Unable to parse filename from $url"
              return $null
          }

          $tempDir = [System.IO.Path]::GetTempPath()
          $path = Join-Path -Path $tempDir -ChildPath $filename

          Write-Host -NoNewline "Downloading $url to $path..."
          Invoke-WebRequest -Uri $url -OutFile $path -UserAgent "NativeClient"
          Write-Host "Done"

          return $path
      }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



azure-pipelines.yml [472:503]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - powershell: |
      $ErrorActionPreference = "Stop"

      function Download-ToTemp
      {
          param
          (
              [Parameter(Mandatory)]
              [string] $url,
              [string] $filename
          )

          if (-not ($filename))
          {
              $filename = Split-Path -Path $url -Leaf
          }

          if (-not ($filename))
          {
              Write-Error "Unable to parse filename from $url"
              return $null
          }

          $tempDir = [System.IO.Path]::GetTempPath()
          $path = Join-Path -Path $tempDir -ChildPath $filename

          Write-Host -NoNewline "Downloading $url to $path..."
          Invoke-WebRequest -Uri $url -OutFile $path -UserAgent "NativeClient"
          Write-Host "Done"

          return $path
      }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



