Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/PowerShell/PowerShell.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya <darpa@yandex.ru>2017-09-28 19:27:43 +0300
committerDongbo Wang <dongb.wang@gmail.com>2017-09-28 19:27:43 +0300
commit6e77537181b92ea2141b1a75102c78c13ec4d0a1 (patch)
tree36a960111159ef1a736b6f01f80376e657ceb56a /PowerShell.Common.props
parentf83e238082a0b9866ae0a8e2cb0b62e5c690c195 (diff)
Get 'PSVersion' and 'GitCommitId' from the 'ProductVersion' attribute of assembly (#4863)
Diffstat (limited to 'PowerShell.Common.props')
-rw-r--r--PowerShell.Common.props3
1 files changed, 3 insertions, 0 deletions
diff --git a/PowerShell.Common.props b/PowerShell.Common.props
index 540ff72895..ccbbd1ea40 100644
--- a/PowerShell.Common.props
+++ b/PowerShell.Common.props
@@ -31,6 +31,9 @@
<PSCoreAdditionalCommits>$([System.Text.RegularExpressions.Regex]::Match($(PowerShellVersion), $(RegexGitVersion)).Groups[2].Value)</PSCoreAdditionalCommits>
<PSCoreCommitSHA>$([System.Text.RegularExpressions.Regex]::Match($(PowerShellVersion), $(RegexGitVersion)).Groups[3].Value)</PSCoreCommitSHA>
+ <!--
+ Caution! 'PSVersion' and 'GitCommitId' from 'PSVersionInfo.cs' depend on the format of this version string.
+ -->
<PSCoreFormattedVersion Condition = "'$(ReleaseTag)' != '' or '$(PSCoreAdditionalCommits)' == '0'">$(PSCoreBuildVersion) SHA: $(PSCoreCommitSHA)</PSCoreFormattedVersion>
<PSCoreFormattedVersion Condition = "'$(PSCoreFormattedVersion)' == ''">$(PSCoreBuildVersion) Commits: $(PSCoreAdditionalCommits) SHA: $(PSCoreCommitSHA)</PSCoreFormattedVersion>