You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
2.9 KiB
XML
53 lines
2.9 KiB
XML
<Project>
|
|
<PropertyGroup Label="Version settings">
|
|
<!--
|
|
Use the following values for the different release types:
|
|
- "alpha"
|
|
- "beta"
|
|
- "rc"
|
|
- "rtm"
|
|
- "servicing"
|
|
|
|
Bump-up to the next iteration immediately after a release, so that subsequent daily builds are named
|
|
correctly.
|
|
-->
|
|
<VersionPrefix>8.0.0</VersionPrefix>
|
|
<PreReleaseVersionLabel>alpha</PreReleaseVersionLabel>
|
|
<PreReleaseVersionIteration>2</PreReleaseVersionIteration>
|
|
|
|
<!--
|
|
The following properties will automatically be set by CI builds when appropriate:
|
|
OfficialVersion
|
|
ContinuousIntegrationTimestamp
|
|
BuildSha
|
|
-->
|
|
</PropertyGroup>
|
|
|
|
<!--
|
|
If no version or version suffix or official version has been explicitly set, we generate a version suffix in the following format:
|
|
alpha.1.ci.20201004T181121Z+sha.0a1b2c3
|
|
-->
|
|
<PropertyGroup>
|
|
<UseVersionOverride Condition="'$(Version)' != ''">true</UseVersionOverride>
|
|
<UseVersionSuffixOverride Condition="'$(VersionSuffix)' != ''">true</UseVersionSuffixOverride>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Label="Version Suffix Handling" Condition="'$(UseVersionOverride)' != 'true' And '$(UseVersionSuffixOverride)' != 'true' And ('$(OfficialVersion)' == '' Or $(OfficialVersion.Contains('-')))">
|
|
<VersionSuffix>$(PreReleaseVersionLabel).$(PreReleaseVersionIteration)</VersionSuffix>
|
|
<VersionSuffix Condition="'$(ContinuousIntegrationTimestamp)' != ''">$(VersionSuffix).ci.$(ContinuousIntegrationTimestamp)</VersionSuffix>
|
|
<VersionSuffix Condition="'$(BuildSha)' != ''">$(VersionSuffix)+sha.$(BuildSha)</VersionSuffix>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="EnsureVersionParameters" BeforeTargets="CoreBuild" Condition="'$(UseVersionOverride)' != 'true' And '$(UseVersionSuffixOverride)' != 'true'">
|
|
<Error Condition="'$(VersionPrefix)' == ''" Text="The 'VersionPrefix' property needs to be set."/>
|
|
<Error Condition="'$(PreReleaseVersionLabel)' == ''" Text="The 'PreReleaseVersionLabel' property needs to be set."/>
|
|
<Error Condition="'$(PreReleaseVersionIteration)' == ''" Text="The 'PreReleaseVersionIteration' property needs to be set."/>
|
|
<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."/>
|
|
<!--
|
|
<Message Importance="high" Text="VersionPrefix: $(VersionPrefix)" />
|
|
<Message Importance="high" Text="VersionSuffix: $(VersionSuffix)" />
|
|
<Message Importance="high" Text="Version: $(Version)" />
|
|
-->
|
|
</Target>
|
|
</Project>
|