diff --git a/Scripts/Prepare-Build.ps1 b/Scripts/Prepare-Build.ps1 index f7dd9de147ea4eb462e50b5e4c747f0ae69da880..5495f4035c66adbed1237eb1a648d1e4f9d9211c 100644 --- a/Scripts/Prepare-Build.ps1 +++ b/Scripts/Prepare-Build.ps1 @@ -91,6 +91,11 @@ catch { $Date = Get-Date -Format 'yyyy-MM-dd HH:mm:ss' +# the dotted short format can be used in the AssemblyInformationalVersion +# property, as this will magically be parsed and reported as "Version" when +# examining the executable using "Get-Command AutoTx.exe | Format-List *" +$DateShort = Get-Date -Format 'yyyy.MM.dd.HHmm' + $BCommit = "$($SolutionDir)\Resources\BuildCommit.txt" $BuildDate = "$($SolutionDir)\Resources\BuildDate.txt" @@ -109,6 +114,6 @@ Write-Output $( "git-describe: [$($CommitName)]$($StatusWarning)" ) -Write-BuildDetails $BuildDetailsCS $DescItems $GitBranch $Date +Write-BuildDetails $BuildDetailsCS $DescItems $GitBranch $DateShort cd $oldpwd \ No newline at end of file