forked from dotnet/docs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
35 lines (31 loc) · 1.44 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
os: Visual Studio 2015
## .NET Core SDK preview1 is already installed in the build worker image Visual Studio 2015
##
## To install a specific version:
##
## install:
## # .NET Core SDK binaries
## ## 1) from direct url
## - ps: $url = "https://go.microsoft.com/fwlink/?LinkID=798402" # v1.0.0-preview1 x64
## ## 2) from url based on version, for example using an env var CLI_VERSION that can be a
## ## a specific version `1.0.0-preview2-003121` or `Latest` (for latest dev version)
## - ps: $url = "https://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/$($env:CLI_VERSION)/dotnet-dev-win-x64.$($env:CLI_VERSION.ToLower()).zip"
## # Download .NET Core SDK and add to PATH
## - ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk"
## - ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
## - ps: $tempFile = [System.IO.Path]::GetTempFileName()
## - ps: (New-Object System.Net.WebClient).DownloadFile($url, $tempFile)
## - ps: Add-Type -AssemblyName System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::ExtractToDirectory($tempFile, $env:DOTNET_INSTALL_DIR)
## - ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
build_script:
# dotnet info
- ps: dotnet --info
# Run dotnet new
- ps: mkdir "test\test-dotnet-new" -Force | Push-Location
- ps: dotnet new --lang fsharp
- ps: dotnet restore
- ps: dotnet --verbose build
- ps: dotnet --verbose run a b
- ps: Pop-Location
test: off
version: 0.0.1.{build}