move cmd to ps

This commit is contained in:
Paddy Xu
2017-07-25 23:27:05 +03:00
parent 2138c0e123
commit 3fb18391df
3 changed files with 15 additions and 11 deletions

View File

@@ -0,0 +1,13 @@
$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