-
Notifications
You must be signed in to change notification settings - Fork 0
/
Versions.props
33 lines (29 loc) · 1.52 KB
/
Versions.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<Project>
<PropertyGroup Label="Version settings">
<!-- these should be manually bumped as needed to
indicate the current version being worked on -->
<VersionMajor>0</VersionMajor>
<VersionMinor>7</VersionMinor>
<VersionPatch>1</VersionPatch>
<!-- this should be overridden by CI automation -->
<VersionBuild>0</VersionBuild>
<!-- fully computed semver version -->
<VersionPrefix Condition="'$(VersionSuffix)' == ''"
>$(VersionMajor).$(VersionMinor).$(VersionPatch).$(VersionBuild)</VersionPrefix>
<VersionPrefix Condition="'$(VersionSuffix)' != ''"
>$(VersionMajor).$(VersionMinor).$(VersionPatch)</VersionPrefix>
<VersionSuffix Condition="'$(VersionSuffix)' != ''"
>$(VersionSuffix)-$(VersionBuild)</VersionSuffix>
</PropertyGroup>
<Target Name="DumpVersions">
<Message Importance="High" Text='{' />
<Message Importance="High" Text=' "Major": "$(VersionMajor)",' />
<Message Importance="High" Text=' "Minor": "$(VersionMinor)",' />
<Message Importance="High" Text=' "Patch": "$(VersionPatch)",' />
<Message Importance="High" Text=' "Build": "$(VersionBuild)",' />
<Message Importance="High" Text=' "Prefix": "$(VersionPrefix)",' />
<Message Importance="High" Text=' "Suffix": "$(VersionSuffix)",' />
<Message Importance="High" Text=' "Version": "$(Version)"' />
<Message Importance="High" Text='}' />
</Target>
</Project>