forked from dotnet/reactive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.ps1
32 lines (21 loc) · 1.01 KB
/
build.ps1
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
$repositoryRoot = split-path $MyInvocation.MyCommand.Definition
$toolsPath = join-path $repositoryRoot ".dotnet"
$getDotNet = join-path $toolsPath "dotnet-install.ps1"
$nugetExePath = join-path $toolsPath "nuget.exe"
write-host "Download latest install script from CLI repo"
New-Item -type directory -f -path $toolsPath | Out-Null
Invoke-WebRequest https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-preview2/scripts/obtain/dotnet-install.ps1 -OutFile $getDotNet
$env:DOTNET_INSTALL_DIR="$repositoryRoot\.dotnet\win7-x64"
if (!(Test-Path $env:DOTNET_INSTALL_DIR)) {
New-Item -type directory -path $env:DOTNET_INSTALL_DIR | Out-Null
}
& $getDotNet -arch x64
$env:PATH = "$env:DOTNET_INSTALL_DIR;$env:PATH"
Write-Host "Building Rx.NET" -ForegroundColor Green
.\Rx.NET\Source\build-new
Write-Host "Building Ix.NET" -ForegroundColor Green
.\Ix.NET\Source\build-new
if ($env:CI -ne 'True') {
Write-Host "Reverting AssemblyInfo's" -Foreground Green
gci $scriptPath -re -in AssemblyInfo.cs | %{ git checkout $_ }
}