Skip to content

Commit

Permalink
Don't download nupkg. nuget.exe auto-downloads it
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkaratarakis committed Feb 6, 2017
1 parent 5b7dc56 commit 7207316
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions scripts/findVisualStudioInstallationInstances.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,6 @@ $nugetexe = & $scriptsDir\fetchDependency.ps1 "nuget"
$nugetPackageDir = "$downloadsDir\nuget-packages"

$SetupAPIVersion = "1.3.269-rc"
$url = "https://api.nuget.org/packages/microsoft.visualstudio.setup.configuration.native.$SetupAPIVersion.nupkg"
$downloadName = "microsoft.visualstudio.setup.configuration.native.$SetupAPIVersion.nupkg"
$downloadPath = "$downloadsDir\$downloadName"

if (!(Test-Path $downloadPath))
{
try {
Start-BitsTransfer -Source $url -Destination $downloadPath -ErrorAction Stop
}
catch [System.Exception] {
# If BITS fails for any reason, delete any potentially partially downloaded files and continue
if (Test-Path $downloadPath)
{
Remove-Item $downloadPath
}
}
}
if (!(Test-Path $downloadPath))
{
Write-Host("Downloading $downloadName...")
(New-Object System.Net.WebClient).DownloadFile($url, $downloadPath)
}

$nugetOutput = & $nugetexe install Microsoft.VisualStudio.Setup.Configuration.Native -Pre -Source $downloadsDir -OutputDirectory $nugetPackageDir 2>&1

$SetupConsoleExe = "$nugetPackageDir\Microsoft.VisualStudio.Setup.Configuration.Native.$SetupAPIVersion\tools\x86\Microsoft.VisualStudio.Setup.Configuration.Console.exe"
Expand Down

0 comments on commit 7207316

Please sign in to comment.