Skip to content

Commit c786595

Browse files
committed
use .net core sdk preview1 in appveyor
1 parent 82dbdc5 commit c786595

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

appveyor.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,23 @@ init:
44
- git config --global core.autocrlf input
55

66
environment:
7+
global:
8+
CLI_VERSION: 1.0.0-preview1-002702 # released preview1
79
matrix:
810
- BUILD_TARGET: DotnetCliTests
911
- BUILD_TARGET: NuGet
1012

13+
install:
14+
# .NET Core SDK binaries
15+
- ps: $url = "https://dotnetcli.blob.core.windows.net/dotnet/beta/Binaries/$($env:CLI_VERSION)/dotnet-dev-win-x64.$($env:CLI_VERSION.ToLower()).zip"
16+
# Download .NET Core SDK and add to PATH
17+
- ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk"
18+
- ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
19+
- ps: $tempFile = [System.IO.Path]::GetTempFileName()
20+
- ps: (New-Object System.Net.WebClient).DownloadFile($url, $tempFile)
21+
- ps: Add-Type -AssemblyName System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::ExtractToDirectory($tempFile, $env:DOTNET_INSTALL_DIR)
22+
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
23+
1124
build_script:
1225
- ps: dotnet --info
1326
- cmd: build.cmd %BUILD_TARGET%

0 commit comments

Comments
 (0)