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
diff options
context:
space:
mode:
authorJamesNK <james@newtonking.com>2012-02-10 15:56:05 +0400
committerJamesNK <james@newtonking.com>2012-02-10 15:56:05 +0400
commit68a200127af905242b9e74157d7d10e9469a2119 (patch)
tree7c8af2cd5b5bdef8d33692ae02dc5c2ec8289cff
parent49328ddeb0e58a7419c25b69d4932b9886886073 (diff)
-Fixed build file
-rw-r--r--Build/build.ps17
1 files changed, 6 insertions, 1 deletions
diff --git a/Build/build.ps1 b/Build/build.ps1
index 66a61c5..90c4a8c 100644
--- a/Build/build.ps1
+++ b/Build/build.ps1
@@ -93,8 +93,13 @@ task Package -depends Build {
if ($buildDocumentation)
{
+ $mainBuild = $builds | where { $_.Name -eq "Newtonsoft.Json" } | select -first 1
+ $mainBuildFinalDir = $mainBuild.FinalDir
+ $documentationSourcePath = "$workingDir\Package\Bin\$mainBuildFinalDir"
+ Write-Host -ForegroundColor Green "Building documentation from $documentationSourcePath"
+
# Sandcastle has issues when compiling with .NET 4 MSBuild - http://shfb.codeplex.com/Thread/View.aspx?ThreadId=50652
- exec { msbuild "/t:Clean;Rebuild" /p:Configuration=Release "/p:DocumentationSourcePath=$workingDir\Package\Bin\Net" $docDir\doc.shfbproj } "Error building documentation. Check that you have Sandcastle, Sandcastle Help File Builder and HTML Help Workshop installed."
+ exec { msbuild "/t:Clean;Rebuild" /p:Configuration=Release "/p:DocumentationSourcePath=$documentationSourcePath" $docDir\doc.shfbproj } "Error building documentation. Check that you have Sandcastle, Sandcastle Help File Builder and HTML Help Workshop installed."
move -Path $workingDir\Documentation\Documentation.chm -Destination $workingDir\Package\Documentation.chm
move -Path $workingDir\Documentation\LastBuild.log -Destination $workingDir\Documentation.log