Files
Scoop/supporting/validator/build.ps1
T
Richard Kuhnt 99820e8ce3 Update json validator
* Update Newtonsoft.Json to version 10.0.3
* Update Newtonsoft.Json.Schema to version 3.0.3
* Add Microsoft.Net.Compiles dependency
* Improve build/update process
* Use deterministic builds for Scoop.Validator.dll and validator.exe
2017-09-10 18:04:03 +02:00

7 lines
580 B
PowerShell

pushd $psscriptroot
iex "$psscriptroot\install.ps1"
gci $psscriptroot\packages\Newtonsoft.*\lib\net40\*.dll -file | % { copy-item $_ $psscriptroot }
& "$psscriptroot\packages\Microsoft.Net.Compilers\tools\csc.exe" /deterministic /platform:anycpu /nologo /optimize /target:library /reference:Newtonsoft.Json.dll,Newtonsoft.Json.Schema.dll Scoop.Validator.cs
& "$psscriptroot\packages\Microsoft.Net.Compilers\tools\csc.exe" /deterministic /platform:anycpu /nologo /optimize /target:exe /reference:Scoop.Validator.dll,Newtonsoft.Json.dll,Newtonsoft.Json.Schema.dll validator.cs
popd