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-12-05 11:24:30 +0300
committerJamesNK <james@newtonking.com>2010-12-05 11:24:30 +0300
commit117748ed3334deb97c9c4dbf3a06f74d083db9cc (patch)
tree6a97fe5d7f2eb3ef2f9440f50690321458d18ce9 /Build
parent227a34ed50cb7fd5e447088af9dce38c409fcda8 (diff)
-Updated build to use latest version of NuGet command line package builder
Diffstat (limited to 'Build')
-rw-r--r--Build/Newtonsoft.Json.nuspec5
-rw-r--r--Build/build.ps126
2 files changed, 15 insertions, 16 deletions
diff --git a/Build/Newtonsoft.Json.nuspec b/Build/Newtonsoft.Json.nuspec
index 9509ee0..d40d466 100644
--- a/Build/Newtonsoft.Json.nuspec
+++ b/Build/Newtonsoft.Json.nuspec
@@ -3,10 +3,9 @@
<metadata>
<id>Newtonsoft.Json</id>
<version>3.5.8</version>
- <authors>
- <author>James Newton-King</author>
- </authors>
+ <authors>James Newton-King</authors>
<description>Json.NET is a popular high-performance JSON framework for .NET</description>
<language>en-US</language>
+ <projectUrl>http://james.newtonking.com/projects/json-net.aspx</projectUrl>
</metadata>
</package> \ No newline at end of file
diff --git a/Build/build.ps1 b/Build/build.ps1
index 8b50a9d..417dbd5 100644
--- a/Build/build.ps1
+++ b/Build/build.ps1
@@ -4,7 +4,7 @@
$signAssemblies = $false
$signKeyPath = "D:\Development\Releases\newtonsoft.snk"
$buildDocumentation = $false
- $buildNuPackage = $true
+ $buildNuGet = $true
$baseDir = resolve-path ..
$buildDir = "$baseDir\Build"
@@ -14,11 +14,11 @@
$releaseDir = "$baseDir\Release"
$workingDir = "$baseDir\Working"
$builds = @(
- @{Name = "Newtonsoft.Json"; TestsName = "Newtonsoft.Json.Tests"; Constants=""; FinalDir="Net"; NuPackDir = "40"; Framework="net-4.0"},
- @{Name = "Newtonsoft.Json.WindowsPhone"; TestsName = $null; Constants="SILVERLIGHT;WINDOWS_PHONE"; FinalDir="WindowsPhone"; NuPackDir = "WP"; Framework="net-4.0"},
- @{Name = "Newtonsoft.Json.Silverlight"; TestsName = "Newtonsoft.Json.Tests.Silverlight"; Constants="SILVERLIGHT"; FinalDir="Silverlight"; NuPackDir = "SL"; Framework="net-2.0"},
- @{Name = "Newtonsoft.Json.Net35"; TestsName = "Newtonsoft.Json.Tests.Net35"; Constants="NET35"; FinalDir="Net35"; NuPackDir = "35"; Framework="net-2.0"},
- @{Name = "Newtonsoft.Json.Net20"; TestsName = "Newtonsoft.Json.Tests.Net20"; Constants="NET20"; FinalDir="Net20"; NuPackDir = "20"; Framework="net-2.0"}
+ @{Name = "Newtonsoft.Json"; TestsName = "Newtonsoft.Json.Tests"; Constants=""; FinalDir="Net"; NuGetDir = "40"; Framework="net-4.0"},
+ @{Name = "Newtonsoft.Json.WindowsPhone"; TestsName = $null; Constants="SILVERLIGHT;WINDOWS_PHONE"; FinalDir="WindowsPhone"; NuGetDir = "WP"; Framework="net-4.0"},
+ @{Name = "Newtonsoft.Json.Silverlight"; TestsName = "Newtonsoft.Json.Tests.Silverlight"; Constants="SILVERLIGHT"; FinalDir="Silverlight"; NuGetDir = "SL"; Framework="net-2.0"},
+ @{Name = "Newtonsoft.Json.Net35"; TestsName = "Newtonsoft.Json.Tests.Net35"; Constants="NET35"; FinalDir="Net35"; NuGetDir = "35"; Framework="net-2.0"},
+ @{Name = "Newtonsoft.Json.Net20"; TestsName = "Newtonsoft.Json.Tests.Net20"; Constants="NET20"; FinalDir="Net20"; NuGetDir = "20"; Framework="net-2.0"}
)
}
@@ -83,22 +83,22 @@ task Package -depends Merge {
move -Path $workingDir\Documentation\Documentation.chm -Destination $workingDir\Package\Documentation.chm
move -Path $workingDir\Documentation\LastBuild.log -Destination $workingDir\Documentation.log
}
- if ($buildNuPackage)
+ if ($buildNuGet)
{
- New-Item -Path $workingDir\NuPack -ItemType Directory
- Copy-Item -Path "$buildDir\Newtonsoft.Json.nuspec" -Destination $workingDir\NuPack\Newtonsoft.Json.nuspec -recurse
+ New-Item -Path $workingDir\NuGet -ItemType Directory
+ Copy-Item -Path "$buildDir\Newtonsoft.Json.nuspec" -Destination $workingDir\NuGet\Newtonsoft.Json.nuspec -recurse
foreach ($build in $builds)
{
$name = $build.TestsName
$finalDir = $build.FinalDir
- $frameworkDir = $build.NuPackDir
+ $frameworkDir = $build.NuGetDir
- Copy-Item -Path "$sourceDir\Newtonsoft.Json\bin\Release\$finalDir" -Destination $workingDir\NuPack\lib\$frameworkDir -recurse
+ Copy-Item -Path "$sourceDir\Newtonsoft.Json\bin\Release\$finalDir" -Destination $workingDir\NuGet\lib\$frameworkDir -recurse
}
- exec { .\Tools\NuPack\NuPack.exe $workingDir\NuPack\Newtonsoft.Json.nuspec }
- move -Path .\*.nupkg -Destination $workingDir\NuPack
+ exec { .\Tools\NuGet\NuGet.exe pack $workingDir\NuGet\Newtonsoft.Json.nuspec }
+ move -Path .\*.nupkg -Destination $workingDir\NuGet
}
Copy-Item -Path $docDir\readme.txt -Destination $workingDir\Package\