Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 14581200C60 for ; Mon, 24 Apr 2017 11:48:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 12E8F160BA5; Mon, 24 Apr 2017 09:48:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5C32E160B99 for ; Mon, 24 Apr 2017 11:48:03 +0200 (CEST) Received: (qmail 89115 invoked by uid 500); 24 Apr 2017 09:48:02 -0000 Mailing-List: contact commits-help@lucenenet.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucene-net-dev@lucenenet.apache.org Delivered-To: mailing list commits@lucenenet.apache.org Received: (qmail 89106 invoked by uid 99); 24 Apr 2017 09:48:02 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Apr 2017 09:48:02 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 61A3DE110C; Mon, 24 Apr 2017 09:48:02 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: nightowl888@apache.org To: commits@lucenenet.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: lucenenet git commit: build\build.ps1: Enable XML documentation generation during build Date: Mon, 24 Apr 2017 09:48:02 +0000 (UTC) archived-at: Mon, 24 Apr 2017 09:48:04 -0000 Repository: lucenenet Updated Branches: refs/heads/api-work 908892094 -> 7733f863b 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/7733f863 Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/7733f863 Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/7733f863 Branch: refs/heads/api-work Commit: 7733f863b76a0bfb5147b57e3f4fb3649f44800f Parents: 9088920 Author: Shad Storhaug Authored: Mon Apr 24 16:44:47 2017 +0700 Committer: Shad Storhaug Committed: Mon Apr 24 16:44:47 2017 +0700 ---------------------------------------------------------------------- build/build.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucenenet/blob/7733f863/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 } }