diff --git a/.github/appveyor.yml b/.github/appveyor.yml index e7f5ddf91..28d985e07 100644 --- a/.github/appveyor.yml +++ b/.github/appveyor.yml @@ -52,7 +52,7 @@ install: if ($env:DOTNET_CHANNEL) { dotnet --info - try { + try { &([scriptblock]::Create((Invoke-WebRequest 'https://dot.net/v1/dotnet-install.ps1'))) -Channel "$env:DOTNET_CHANNEL" -InstallDir "$env:DOTNET_INSTALL_DIR" -NoPath } catch [System.Net.WebException],[System.IO.IOException] { # Not fatal for the remaining part of the script @@ -64,7 +64,7 @@ install: if ($env:DOTNET_SDK) { dotnet --info - try { + try { &([scriptblock]::Create((Invoke-WebRequest 'https://dot.net/v1/dotnet-install.ps1'))) -Channel 'Current' -Version "$env:DOTNET_SDK" -InstallDir "$env:DOTNET_INSTALL_DIR" -NoPath } catch [System.Net.WebException],[System.IO.IOException] { # Not fatal for the remaining part of the script