Skip to content
Snippets Groups Projects
Commit 2319b3d2 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Provide a dot-formatted variant of the build-date.

Useful in combination with the AssemblyInformationalVersion property.
parent 9e9d8526
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment