Skip to content

Commit bab8777

Browse files
committed
add default proxy support to dnvminstall.ps1
Retrieve the default proxy settings from the system and also set the proxy credentials from the system too
1 parent b1a1f52 commit bab8777

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dnvminstall.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ if (!(Test-Path $tempPath)) { md $tempPath | Out-Null }
77

88

99
$webClient = New-Object System.Net.WebClient
10+
$webClient.Proxy = [System.Net.WebRequest]::DefaultWebProxy
11+
$webClient.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials
1012
Write-Host "Downloading DNVM.ps1 to $dnvmPs1Path"
1113
$webClient.DownloadFile('https://raw.githubusercontent.com/aspnet/Home/dev/dnvm.ps1', $dnvmPs1Path)
1214
Write-Host "Downloading DNVM.cmd to $dnvmCmdPath"

0 commit comments

Comments
 (0)