Files
QuickLook/Scripts/update-version.ps1
2017-07-25 23:29:51 +03:00

13 lines
339 B
PowerShell

$tag = git describe --always --tags "--abbrev=0"
$revision = git describe --always --tags
$text = @"
// This file is generated by update-version.ps1
using System.Reflection;
[assembly: AssemblyVersion("$tag")]
[assembly: AssemblyInformationalVersion("$revision")]
"@
$text | Out-File $PSScriptRoot\..\GitVersion.cs -Encoding utf8