Skip to content

Commit

Permalink
validator/shimexe: Add -Fast Switch to build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Kuhnt committed Feb 24, 2019
1 parent 7f2534d commit b24e7d8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
Param([Switch]$Fast)
Push-Location $psscriptroot
. "$psscriptroot\..\..\lib\install.ps1"

Write-Host "Install dependencies ..."
Invoke-Expression "$psscriptroot\install.ps1"
if(!$Fast) {
Write-Host "Install dependencies ..."
Invoke-Expression "$psscriptroot\install.ps1"
}

$output = "$psscriptroot\bin"
Get-ChildItem "$psscriptroot\packages\Newtonsoft.*\lib\net45\*.dll" -File | ForEach-Object { Copy-Item $_ $output }
if(!$Fast) {
Get-ChildItem "$psscriptroot\packages\Newtonsoft.*\lib\net45\*.dll" -File | ForEach-Object { Copy-Item $_ $output }
}
Write-Output 'Compiling Scoop.Validator.cs ...'
& "$psscriptroot\packages\Microsoft.Net.Compilers\tools\csc.exe" /deterministic /platform:anycpu /nologo /optimize /target:library /reference:"$output\Newtonsoft.Json.dll","$output\Newtonsoft.Json.Schema.dll" /out:"$output\Scoop.Validator.dll" Scoop.Validator.cs
Write-Output 'Compiling validator.cs ...'
Expand Down

0 comments on commit b24e7d8

Please sign in to comment.