Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/Newtonsoft.Json.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorJamesNK <james@newtonking.com>2010-03-17 09:53:47 +0300
committerJamesNK <james@newtonking.com>2010-03-17 09:53:47 +0300
commit6d67aefac70fcc0a7648559deb784581ece305f5 (patch)
tree97585df834fea4dc72f440747c181f569209de2b /Build
parent846b7d79f21b31bec29425554c36dbd5971f9da1 (diff)
-Added ReflectionDelegateFactory, DynamicReflectionDelegateFactory and LateBoundDelegateFactory to support switching between dynamic and late bound reflection for medium trust environments
-Added WriteObjectId to BsonWriter -Added BsonObjectId and BsonObjectIdConverter classes -Added KeyValuePairConverter -Added DynamicCodeGeneration flag to DefaultContractResolver -Changed JsonConverter.ReadJson to add an extra parameter: currentValue
Diffstat (limited to 'Build')
-rw-r--r--Build/build.ps16
1 files changed, 6 insertions, 0 deletions
diff --git a/Build/build.ps1 b/Build/build.ps1
index 44a2910..cdc7dc3 100644
--- a/Build/build.ps1
+++ b/Build/build.ps1
@@ -21,6 +21,7 @@
task default -depends Test
+# Ensure a clean working directory
task Clean {
Set-Location $baseDir
@@ -34,6 +35,7 @@ task Clean {
New-Item -Path $workingDir -ItemType Directory
}
+# Build each solution, optionally signed
task Build -depends Clean {
foreach ($build in $builds)
@@ -47,6 +49,7 @@ task Build -depends Clean {
}
}
+# Merge LinqBridge into .NET 2.0 build
task Merge -depends Build {
$binaryDir = "$sourceDir\Newtonsoft.Json\bin\Release\DotNet20"
MergeAssembly "$binaryDir\Newtonsoft.Json.Net20.dll" $signKeyPath "$binaryDir\LinqBridge.dll"
@@ -58,6 +61,7 @@ task Merge -depends Build {
del $binaryDir\LinqBridge.dll
}
+# Optional build documentation, add files to final zip
task Package -depends Merge {
foreach ($build in $builds)
{
@@ -86,10 +90,12 @@ task Package -depends Merge {
exec { .\Tools\7-zip\7za.exe a -tzip $workingDir\$zipFileName $workingDir\Package\* } "Error zipping"
}
+# Unzip package to a location
task Deploy -depends Package {
exec { .\Tools\7-zip\7za.exe x -y "-o$workingDir\Deployed" $workingDir\$zipFileName } "Error unzipping"
}
+# Run tests on deployed files
task Test -depends Deploy {
foreach ($build in $builds)
{