File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,12 @@ If you don't want to install Visual Studio or want to upgrade DNVM to the latest
22
22
23
23
####CMD
24
24
```
25
- @powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient) .DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"
25
+ @powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';$wc=New-Object System.Net.WebClient;$wc.Proxy=[System.Net.WebRequest]::DefaultWebProxy;$wc.Proxy.Credentials=[System.Net.CredentialCache]::DefaultNetworkCredentials;Invoke-Expression ($wc .DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"
26
26
```
27
27
28
28
####Powershell
29
29
```
30
- &{$Branch='dev';iex ((new-object net.webclient) .DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}
30
+ &{$Branch='dev';$wc=New-Object System.Net.WebClient;$wc.Proxy=[System.Net.WebRequest]::DefaultWebProxy;$wc.Proxy.Credentials=[System.Net.CredentialCache]::DefaultNetworkCredentials;Invoke-Expression ($wc .DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}
31
31
```
32
32
33
33
This will download the DNVM script and put it in your user profile. You can check the location of DNVM by running the following in a cmd prompt:
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ if (!(Test-Path $tempPath)) { md $tempPath | Out-Null }
7
7
8
8
9
9
$webClient = New-Object System.Net.WebClient
10
+ $webClient.Proxy = [System.Net.WebRequest ]::DefaultWebProxy
11
+ $webClient.Proxy.Credentials = [System.Net.CredentialCache ]::DefaultNetworkCredentials
10
12
Write-Host " Downloading DNVM.ps1 to $dnvmPs1Path "
11
13
$webClient.DownloadFile (' https://raw.githubusercontent.com/aspnet/Home/dev/dnvm.ps1' , $dnvmPs1Path )
12
14
Write-Host " Downloading DNVM.cmd to $dnvmCmdPath "
You can’t perform that action at this time.
0 commit comments