Trying to use AppVersion env in yml file

This commit is contained in:
Jaex 2016-09-22 02:43:56 +03:00
parent eda3629916
commit ebaa1983e5
2 changed files with 5 additions and 2 deletions

View file

@ -1,4 +1,4 @@
version: 11.2.1.{build}
version: $(AppVersion).{build}
image: Visual Studio 2015
configuration:
- Release

View file

@ -4,4 +4,7 @@ if ($match.Success)
{
$env:AppVersion = $match.Groups[1].Value
}
Write-Host "Test: ShareX $env:AppVersion"
else
{
$env:AppVersion = "1.0.0"
}