This is an automated email from the ASF dual-hosted git repository. nightowl888 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/lucenenet.git
commit f4280e61a89e1e55365b46e89b1778e37f6273d1 Author: Shad Storhaug <[email protected]> AuthorDate: Sun Feb 13 21:42:17 2022 +0700 BUG: build.ps1: Added missing prepareForBuild and backupFiles properties, which must be set to false when doing a distribution build (i.e. when the version.props file exists) --- build.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.ps1 b/build.ps1 index ed490e3..5d0ce70 100644 --- a/build.ps1 +++ b/build.ps1 @@ -82,6 +82,12 @@ $parameters = @{} $properties = @{} $properties.maximumParallelJobs = $maximumParallelJobs + +# If version.props exists, we must not prepare for build or backup, because +# we assume we are a release distribution. +$properties.prepareForBuild = -not $versionPropsExists +$properties.backupFiles = -not $versionPropsExists + if (-not [string]::IsNullOrWhiteSpace($packageVersion)) { $properties.packageVersion=$packageVersion }
