2019-10-04 01:35:05 +02:00
|
|
|
<!--
|
2019-10-03 18:51:35 +02:00
|
|
|
|
2019-10-04 01:35:05 +02:00
|
|
|
This file defines the version information.
|
|
|
|
|
|
|
|
-->
|
|
|
|
<Project>
|
|
|
|
|
|
|
|
<!-- Set the version number:
|
|
|
|
major,
|
|
|
|
minor,
|
|
|
|
build,
|
|
|
|
release (i.e. alpha, beta or blank for RTM)
|
|
|
|
-->
|
2019-10-03 18:51:35 +02:00
|
|
|
<PropertyGroup>
|
|
|
|
<VersionMajor Condition="'$(VersionMajor)' == ''">1</VersionMajor>
|
|
|
|
<VersionMinor Condition="'$(VersionMinor)' == ''">0</VersionMinor>
|
2021-10-07 18:29:58 +02:00
|
|
|
<VersionBuild Condition="'$(VersionBuild)' == ''">9</VersionBuild>
|
2019-10-03 18:51:35 +02:00
|
|
|
<VersionRelease Condition="'$(VersionRelease)' == ''"></VersionRelease>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<!-- For NuGet Package Dependencies -->
|
|
|
|
<PropertyGroup>
|
2021-11-18 19:44:10 +01:00
|
|
|
<OpenApiCorePackageDependency>[1.2.3, 2.0.0)</OpenApiCorePackageDependency>
|
2021-11-19 18:40:37 +01:00
|
|
|
<ODataEdmPackageDependency>[7.9.4, 8.0.0)</ODataEdmPackageDependency>
|
2019-10-03 18:51:35 +02:00
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<!--
|
2020-01-08 20:55:49 +01:00
|
|
|
Revision number is a date code. Note that this only work for 6 years before the year part (year minus 2020)
|
2019-10-03 18:51:35 +02:00
|
|
|
overflows the Int16. The system convert below will throw errors when this happens.
|
|
|
|
-->
|
|
|
|
<PropertyGroup>
|
2020-01-08 20:55:49 +01:00
|
|
|
<VersionStartYear Condition="'$(VersionStartYear)' == ''">2020</VersionStartYear>
|
2019-10-04 01:35:05 +02:00
|
|
|
|
|
|
|
<!-- { Now.Year - 2019 + 1}{MM}{DD} -->
|
2019-10-03 18:51:35 +02:00
|
|
|
<VersionDateCode>$([System.Convert]::ToInt16('$([MSBuild]::Add(1, $([MSBuild]::Subtract($([System.DateTime]::Now.Year), $(VersionStartYear)))))$([System.DateTime]::Now.ToString("MMdd"))'))</VersionDateCode>
|
2019-10-04 01:35:05 +02:00
|
|
|
|
2019-10-03 18:51:35 +02:00
|
|
|
<VersionRevision Condition="'$(VersionRevision)' == '' OR '$(VersionRevision)' == '0'">$([System.Convert]::ToString($(VersionDateCode)))</VersionRevision>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<!-- Product Version -->
|
|
|
|
<PropertyGroup>
|
|
|
|
<VersionFullSemantic>$(VersionMajor).$(VersionMinor).$(VersionBuild)</VersionFullSemantic>
|
|
|
|
<VersionFull>$(VersionFullSemantic).$(VersionRevision)</VersionFull>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<!-- For NuGet Packages -->
|
|
|
|
<PropertyGroup>
|
|
|
|
<VersionNuGetSemantic>$(VersionFullSemantic)</VersionNuGetSemantic>
|
|
|
|
<VersionNuGetSemantic Condition="'$(VersionRelease)'!=''">$(VersionFullSemantic)-$(VersionRelease)</VersionNuGetSemantic>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
</Project>
|