|
1 | 1 | <Project> |
2 | | - <PropertyGroup Label="Version settings"> |
3 | | - <!-- |
| 2 | + <PropertyGroup Label="Version settings"> |
| 3 | + <!-- |
4 | 4 | Use the following values for the different release types: |
5 | 5 | - "alpha" |
6 | 6 | - "beta" |
7 | 7 | - "rc" |
8 | 8 | - "rtm" |
9 | 9 | - "servicing" |
10 | 10 | --> |
11 | | - <VersionPrefix>7.0.0</VersionPrefix> |
12 | | - <PreReleaseVersionLabel>alpha</PreReleaseVersionLabel> |
13 | | - <PreReleaseVersionIteration>2</PreReleaseVersionIteration> |
| 11 | + <VersionPrefix>7.0.0</VersionPrefix> |
| 12 | + <PreReleaseVersionLabel>beta</PreReleaseVersionLabel> |
| 13 | + <PreReleaseVersionIteration>1</PreReleaseVersionIteration> |
14 | 14 |
|
15 | | - <!-- |
| 15 | + <!-- |
16 | 16 | The following properties will automatically be set by CI builds when appropriate: |
17 | 17 | OfficialVersion |
18 | 18 | ContinuousIntegrationTimestamp |
19 | 19 | BuildSha |
20 | 20 | --> |
21 | | - </PropertyGroup> |
| 21 | + </PropertyGroup> |
22 | 22 |
|
23 | | - <!-- |
| 23 | + <!-- |
24 | 24 | If no version or version suffix or official version has been explicitly set, we generate a version suffix in the following format: |
25 | 25 | alpha.1.ci.20201004T181121Z+sha.0a1b2c3 |
26 | 26 | --> |
27 | | - <PropertyGroup> |
28 | | - <UseVersionOverride Condition="'$(Version)' != ''">true</UseVersionOverride> |
29 | | - <UseVersionSuffixOverride Condition="'$(VersionSuffix)' != ''">true</UseVersionSuffixOverride> |
30 | | - </PropertyGroup> |
| 27 | + <PropertyGroup> |
| 28 | + <UseVersionOverride Condition="'$(Version)' != ''">true</UseVersionOverride> |
| 29 | + <UseVersionSuffixOverride Condition="'$(VersionSuffix)' != ''">true</UseVersionSuffixOverride> |
| 30 | + </PropertyGroup> |
31 | 31 |
|
32 | | - <PropertyGroup Label="Version Suffix Handling" Condition="'$(UseVersionOverride)' != 'true' And '$(UseVersionSuffixOverride)' != 'true' And ('$(OfficialVersion)' == '' Or $(OfficialVersion.Contains('-')))"> |
33 | | - <VersionSuffix>$(PreReleaseVersionLabel).$(PreReleaseVersionIteration)</VersionSuffix> |
34 | | - <VersionSuffix Condition="'$(ContinuousIntegrationTimestamp)' != ''">$(VersionSuffix).ci.$(ContinuousIntegrationTimestamp)</VersionSuffix> |
35 | | - <VersionSuffix Condition="'$(BuildSha)' != ''">$(VersionSuffix)+sha.$(BuildSha)</VersionSuffix> |
36 | | - </PropertyGroup> |
| 32 | + <PropertyGroup Label="Version Suffix Handling" Condition="'$(UseVersionOverride)' != 'true' And '$(UseVersionSuffixOverride)' != 'true' And ('$(OfficialVersion)' == '' Or $(OfficialVersion.Contains('-')))"> |
| 33 | + <VersionSuffix>$(PreReleaseVersionLabel).$(PreReleaseVersionIteration)</VersionSuffix> |
| 34 | + <VersionSuffix Condition="'$(ContinuousIntegrationTimestamp)' != ''">$(VersionSuffix).ci.$(ContinuousIntegrationTimestamp)</VersionSuffix> |
| 35 | + <VersionSuffix Condition="'$(BuildSha)' != ''">$(VersionSuffix)+sha.$(BuildSha)</VersionSuffix> |
| 36 | + </PropertyGroup> |
37 | 37 |
|
38 | | - <Target Name="EnsureVersionParameters" BeforeTargets="CoreBuild" Condition="'$(UseVersionOverride)' != 'true' And '$(UseVersionSuffixOverride)' != 'true'"> |
39 | | - <Error Condition="'$(VersionPrefix)' == ''" Text="The 'VersionPrefix' property needs to be set." /> |
40 | | - <Error Condition="'$(PreReleaseVersionLabel)' == ''" Text="The 'PreReleaseVersionLabel' property needs to be set." /> |
41 | | - <Error Condition="'$(PreReleaseVersionIteration)' == ''" Text="The 'PreReleaseVersionIteration' property needs to be set." /> |
42 | | - <Error Condition="'$(OfficialVersion)' != '' And '$(OfficialVersion)' != '$(VersionPrefix)' And '$(OfficialVersion)' != '$(VersionPrefix)-$(VersionSuffix)'" Text="The 'OfficialVersion' property needs to be identical to the 'VersionPrefix' property or to a combination of the 'VersionPrefix' and the 'VersionSuffix' properties." /> |
43 | | - <!-- |
| 38 | + <Target Name="EnsureVersionParameters" BeforeTargets="CoreBuild" Condition="'$(UseVersionOverride)' != 'true' And '$(UseVersionSuffixOverride)' != 'true'"> |
| 39 | + <Error Condition="'$(VersionPrefix)' == ''" Text="The 'VersionPrefix' property needs to be set." /> |
| 40 | + <Error Condition="'$(PreReleaseVersionLabel)' == ''" Text="The 'PreReleaseVersionLabel' property needs to be set." /> |
| 41 | + <Error Condition="'$(PreReleaseVersionIteration)' == ''" Text="The 'PreReleaseVersionIteration' property needs to be set." /> |
| 42 | + <Error Condition="'$(OfficialVersion)' != '' And '$(OfficialVersion)' != '$(VersionPrefix)' And '$(OfficialVersion)' != '$(VersionPrefix)-$(VersionSuffix)'" Text="The 'OfficialVersion' property needs to be identical to the 'VersionPrefix' property or to a combination of the 'VersionPrefix' and the 'VersionSuffix' properties." /> |
| 43 | + <!-- |
44 | 44 | <Message Importance="high" Text="VersionPrefix: $(VersionPrefix)" /> |
45 | 45 | <Message Importance="high" Text="VersionSuffix: $(VersionSuffix)" /> |
46 | 46 | <Message Importance="high" Text="Version: $(Version)" /> |
47 | 47 | --> |
48 | | - </Target> |
| 48 | + </Target> |
49 | 49 | </Project> |
0 commit comments