build.ps1 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. $repositoryRoot = split-path $MyInvocation.MyCommand.Definition
  2. $toolsPath = join-path $repositoryRoot ".dotnet"
  3. $getDotNet = join-path $toolsPath "dotnet-install.ps1"
  4. $nugetExePath = join-path $toolsPath "nuget.exe"
  5. write-host "Download latest install script from CLI repo"
  6. New-Item -type directory -f -path $toolsPath | Out-Null
  7. Invoke-WebRequest https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-preview2/scripts/obtain/dotnet-install.ps1 -OutFile $getDotNet
  8. $env:DOTNET_INSTALL_DIR="$repositoryRoot\.dotnet\win7-x64"
  9. if (!(Test-Path $env:DOTNET_INSTALL_DIR)) {
  10. New-Item -type directory -path $env:DOTNET_INSTALL_DIR | Out-Null
  11. }
  12. & $getDotNet -arch x64
  13. $env:PATH = "$env:DOTNET_INSTALL_DIR;$env:PATH"
  14. Write-Host "Building Rx.NET" -ForegroundColor Green
  15. #.\Rx.NET\Source\build-new
  16. Write-Host "Building Ix.NET" -ForegroundColor Green
  17. .\Ix.NET\Source\build-new
  18. if ($env:CI -ne 'True') {
  19. Write-Host "Reverting AssemblyInfo's" -Foreground Green
  20. gci $scriptPath -re -in AssemblyInfo.cs | %{ git checkout $_ }
  21. }