diff --git a/Build/build.ps1 b/Build/build.ps1
index 30b42ad0..2e9861ee 100644
--- a/Build/build.ps1
+++ b/Build/build.ps1
@@ -3,6 +3,7 @@
$majorVersion = "7.0"
$majorWithReleaseVersion = "7.0.1"
$version = GetVersion $majorWithReleaseVersion
+ $packageId = "Newtonsoft.Json"
$signAssemblies = $false
$signKeyPath = "C:\Development\Releases\newtonsoft.snk"
$buildDocumentation = $false
@@ -87,8 +88,19 @@ task Package -depends Build {
if ($buildNuGet)
{
- New-Item -Path $workingDir\NuGet -ItemType Directory
- Copy-Item -Path "$buildDir\Newtonsoft.Json.nuspec" -Destination $workingDir\NuGet\Newtonsoft.Json.nuspec -recurse
+ New-Item -Path $workingDir\NuGet -ItemType Directory
+
+ $nuspecPath = "$workingDir\NuGet\Newtonsoft.Json.nuspec"
+ Copy-Item -Path "$buildDir\Newtonsoft.Json.nuspec" -Destination $nuspecPath -recurse
+
+ Write-Host "Building NuGet package from $nuspecPath"
+
+ $xml = [xml](Get-Content $nuspecPath)
+ Edit-XmlNodes -doc $xml -xpath "//*[local-name() = 'id']" -value $packageId
+
+ Write-Host $xml.OuterXml
+
+ $xml.save($nuspecPath)
New-Item -Path $workingDir\NuGet\tools -ItemType Directory
Copy-Item -Path "$buildDir\install.ps1" -Destination $workingDir\NuGet\tools\install.ps1 -recurse
@@ -110,7 +122,7 @@ task Package -depends Build {
robocopy $sourceDir $workingDir\NuGet\src *.cs /S /NP /XD Newtonsoft.Json.Tests Newtonsoft.Json.TestConsole obj | Out-Default
- exec { .\Tools\NuGet\NuGet.exe pack $workingDir\NuGet\Newtonsoft.Json.nuspec -Symbols }
+ exec { .\Tools\NuGet\NuGet.exe pack $nuspecPath -Symbols }
move -Path .\*.nupkg -Destination $workingDir\NuGet
}
@@ -262,4 +274,28 @@ function Update-AssemblyInfoFiles ([string] $sourceDir, [string] $assemblyVersio
% {$_ -replace $fileVersionPattern, $fileVersion }
} | Set-Content $filename
}
+}
+
+function Edit-XmlNodes {
+ param (
+ [xml] $doc,
+ [string] $xpath = $(throw "xpath is a required parameter"),
+ [string] $value = $(throw "value is a required parameter")
+ )
+
+ $nodes = $doc.SelectNodes($xpath)
+ $count = $nodes.Count
+
+ Write-Host "Found $count nodes with path '$xpath'"
+
+ foreach ($node in $nodes) {
+ if ($node -ne $null) {
+ if ($node.NodeType -eq "Element") {
+ $node.InnerXml = $value
+ }
+ else {
+ $node.Value = $value
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/Doc/doc.content b/Doc/doc.content
index 79923451..2740af2f 100644
--- a/Doc/doc.content
+++ b/Doc/doc.content
@@ -29,8 +29,8 @@
-
-
+
+
@@ -53,7 +53,7 @@
-
+
diff --git a/Doc/icons/favicon.ico b/Doc/icons/favicon.ico
index 92b0eb6e..466716cf 100644
Binary files a/Doc/icons/favicon.ico and b/Doc/icons/favicon.ico differ
diff --git a/Src/Newtonsoft.Json.TestConsole/Properties/AssemblyInfo.cs b/Src/Newtonsoft.Json.TestConsole/Properties/AssemblyInfo.cs
index 2dc82677..b798f917 100644
--- a/Src/Newtonsoft.Json.TestConsole/Properties/AssemblyInfo.cs
+++ b/Src/Newtonsoft.Json.TestConsole/Properties/AssemblyInfo.cs
@@ -57,4 +57,4 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("7.0.0.0")]
-[assembly: AssemblyFileVersion("7.0.1.18126")]
+[assembly: AssemblyFileVersion("7.0.1.18131")]
diff --git a/Src/Newtonsoft.Json.Tests/Properties/AssemblyInfo.cs b/Src/Newtonsoft.Json.Tests/Properties/AssemblyInfo.cs
index e6537f83..4ac7f2eb 100644
--- a/Src/Newtonsoft.Json.Tests/Properties/AssemblyInfo.cs
+++ b/Src/Newtonsoft.Json.Tests/Properties/AssemblyInfo.cs
@@ -76,4 +76,4 @@ using System.Security;
// by using the '*' as shown below:
[assembly: AssemblyVersion("7.0.0.0")]
-[assembly: AssemblyFileVersion("7.0.1.18126")]
+[assembly: AssemblyFileVersion("7.0.1.18131")]
diff --git a/Src/Newtonsoft.Json/Properties/AssemblyInfo.cs b/Src/Newtonsoft.Json/Properties/AssemblyInfo.cs
index 8f1f6726..094c5d45 100644
--- a/Src/Newtonsoft.Json/Properties/AssemblyInfo.cs
+++ b/Src/Newtonsoft.Json/Properties/AssemblyInfo.cs
@@ -92,5 +92,5 @@ using System.Security;
// by using the '*' as shown below:
[assembly: AssemblyVersion("7.0.0.0")]
-[assembly: AssemblyFileVersion("7.0.1.18126")]
+[assembly: AssemblyFileVersion("7.0.1.18131")]
[assembly: CLSCompliant(true)]