Skip to content

Commit 003885b

Browse files
committed
Fix appveyor
1 parent 4ca5c39 commit 003885b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

appveyor.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ dotnet_csproj:
1717
informational_version: '{version}'
1818
install:
1919
- ps: >-
20+
[XML]$xml = Get-Content "$env:APPVEYOR_PROJECT_NAME\$env:APPVEYOR_PROJECT_NAME.csproj"
21+
22+
$env:VERSION = ($xml.Project.PropertyGroup.Version).Trim()
23+
24+
Update-AppveyorBuild -Version "$env:VERSION.$env:APPVEYOR_BUILD_NUMBER"
25+
2026
$CommitDateTime = [datetime]::Parse($env:APPVEYOR_REPO_COMMIT_TIMESTAMP)
2127
2228
$env:BuildDate = $CommitDateTime.ToString('yyyy-MM-dd')

0 commit comments

Comments
 (0)