Skip to content

Commit

Permalink
Update workload install script
Browse files Browse the repository at this point in the history
  • Loading branch information
JoonghyunCho committed Feb 14, 2024
1 parent dfe62c5 commit bb6b705
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions workload/scripts/workload-install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,13 @@ function Get-LatestVersion([string]$Id) {
function Get-Package([string]$Id, [string]$Version, [string]$Destination, [string]$FileExt = "nupkg") {
$OutFileName = "$Id.$Version.$FileExt"
$OutFilePath = Join-Path -Path $Destination -ChildPath $OutFileName

if ($Id -match ".net[0-9]+$") {
$Id = $Id -replace (".net[0-9]+", "")
}

Invoke-WebRequest -Uri "https://www.nuget.org/api/v2/package/$Id/$Version" -OutFile $OutFilePath

return $OutFilePath
}

Expand Down

0 comments on commit bb6b705

Please sign in to comment.