forked from RevolutionAnalytics/RRO
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.ps1
More file actions
28 lines (18 loc) · 729 Bytes
/
build.ps1
File metadata and controls
28 lines (18 loc) · 729 Bytes
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
$NUGET_URL = 'https://nuget.org/nuget.exe'
if (-Not (Get-Command nuget.exe -ErrorAction SilentlyContinue))
{
$nugetPath = '\nuget'
md $nugetPath -Force
$nugetPath = Convert-Path $nugetPath
Write-Host $nugetPath
Invoke-WebRequest -Uri $NUGET_URL -OutFile \nuget\nuget.exe
$env:Path = $env:Path + ';' + $nugetPath
[Environment]::SetEnvironmentVariable('PATH', $env:Path, 'Machine')
}
nuget restore RRO-src/buildFiles/RRO_Build.sln
Push-Location RRO-src/buildFiles
$frameworkDir = [System.Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory()
$msbuild = Join-Path $frameworkDir 'msbuild.exe'
& $msbuild /p:Configuration=Release
packages/FAKE.4.0.3/tools/fake.exe
Pop-Location