mirror of https://github.com/SixLabors/ImageSharp
Browse Source
Former-commit-id: 610ea28bb7cd7d0b07efded1f7bd9caa28336c78 Former-commit-id: 92df24ee27c2df34c702a05bff895ae5faede94c Former-commit-id: 069b92217a51946d589a65bf907c0804aaa96905pull/1/head
3 changed files with 42 additions and 11 deletions
@ -0,0 +1,29 @@ |
|||||
|
# Set up everything for using the dotnet cli. This means we do not have to wait for Appveyor images to be updated. |
||||
|
|
||||
|
# Clean and recreate the folder in which all output packages should be placed |
||||
|
$ArtifactsPath = "artifacts" |
||||
|
|
||||
|
if (Test-Path $ArtifactsPath) { |
||||
|
Remove-Item -Path $ArtifactsPath -Recurse -Force -ErrorAction Ignore |
||||
|
} |
||||
|
|
||||
|
New-Item $ArtifactsPath -ItemType Directory -ErrorAction Ignore | Out-Null |
||||
|
|
||||
|
Write-Host "Created artifacts folder '$ArtifactsPath'" |
||||
|
|
||||
|
# Install the latest dotnet cli |
||||
|
if (Get-Command "dotnet.exe" -ErrorAction SilentlyContinue) { |
||||
|
Write-Host "dotnet SDK already installed" |
||||
|
dotnet --version |
||||
|
} else { |
||||
|
Write-Host "Installing dotnet SDK" |
||||
|
|
||||
|
$installScript = Join-Path $ArtifactsPath "dotnet-install.ps1" |
||||
|
|
||||
|
Write-Host $installScript |
||||
|
|
||||
|
Invoke-WebRequest "https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/install.ps1" ` |
||||
|
-OutFile $installScript |
||||
|
|
||||
|
& $installScript |
||||
|
} |
||||
Loading…
Reference in new issue