build\build.ps1: Enable XML documentation generation during build
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/a39d94a1 Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/a39d94a1 Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/a39d94a1 Branch: refs/heads/api-work Commit: a39d94a10adc0f55b05bb2facf21ca73d5e3b080 Parents: 0ed7d36 Author: Shad Storhaug <[email protected]> Authored: Mon Apr 24 16:44:47 2017 +0700 Committer: Shad Storhaug <[email protected]> Committed: Mon Apr 24 17:23:10 2017 +0700 ---------------------------------------------------------------------- build/build.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a39d94a1/build/build.ps1 ---------------------------------------------------------------------- diff --git a/build/build.ps1 b/build/build.ps1 index e45c679..4574d59 100644 --- a/build/build.ps1 +++ b/build/build.ps1 @@ -69,6 +69,7 @@ task Compile -depends Clean, Init -description "This task compiles the solution" Backup-Files $projects Prepare-For-Build $projects + Exec { & dotnet.exe restore $base_directory } @@ -222,6 +223,13 @@ function Prepare-For-Build([string[]]$projects) { $json = (Get-Content $project -Raw) | ConvertFrom-Json $json.version = $PackageVersion + if (!$project.Contains("Test")) { + if ($json.buildOptions.xmlDoc -eq $null) { + $json.buildOptions | Add-Member -Name "xmlDoc" -Value true -MemberType NoteProperty + } else { + $json.buildOptions | % {$_.xmlDoc = true} + } + } $json | ConvertTo-Json -depth 100 | Out-File $project -encoding UTF8 -Force } }
