Skip to content

Commit

Permalink
Try futureproofing, even if it's still not working
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveGilham committed Jun 2, 2018
1 parent b0e3d8e commit b73e65c
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,21 @@ environment:
install:
- ps: >-
$client = new-object System.Net.WebClient
$s = & dotnet --version | out-String
$client.DownloadFile("https://dot.net/v1/dotnet-install.ps1", "C:/projects/altcover/dotnet-install.ps1")
if ([Version]$s -lt [Version]"2.1.300") {
dir *.ps1
Write-Host "Found version $s"
& "C:/projects/altcover/dotnet-install.ps1" -Version "2.1.300"
$client = new-object System.Net.WebClient
$client.DownloadFile("https://dot.net/v1/dotnet-install.ps1", "C:/projects/altcover/dotnet-install.ps1")
dir *.ps1
& "C:/projects/altcover/dotnet-install.ps1" -Version "2.1.300"
}
cache:
- packages -> **\packages.config
- Demo\Service\packages -> Demo\Service\Service\packages.config
Expand Down

0 comments on commit b73e65c

Please sign in to comment.