build/NugetProperties.props (23 lines of code) (raw):
<Project>
<PropertyGroup>
<Authors>Microsoft</Authors>
<Company>Microsoft</Company>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<AssemblyOriginatorKeyFile>..\..\build\AzureAppConfiguration.snk</AssemblyOriginatorKeyFile>
<RepositoryUrl>https://github.com/Azure/Azconfig-DotnetProvider</RepositoryUrl>
<PackageProjectUrl>https://github.com/Azure/AppConfiguration</PackageProjectUrl>
<PackageLicenseUrl>https://licenses.nuget.org/MIT</PackageLicenseUrl>
<PackageIconUrl>https://aka.ms/AzureAppConfigurationPackageIcon</PackageIconUrl>
</PropertyGroup>
<PropertyGroup Condition="'$(CDP_PATCH_NUMBER)'==''">
<Version>4.9.9999</Version>
</PropertyGroup>
<PropertyGroup Condition="'$(CDP_PATCH_NUMBER)'!='' AND '$(CDP_BUILD_TYPE)'!='Official'">
<!-- Note that CDP_PACKAGE_VERSION_NUMERIC uses format Major.Minor.MMddyyrrrr, which causes compile error CS7034 because .NET Core doesn't allow version numbers higher than 65534. -->
<!-- CDP_PATCH_NUMBER is updated daily by the build system, the addition of a revision number makes the build number unique by the minute -->
<!-- The revision number is the number of minutes since midnight [0, 1440) -->
<!-- Example build number, 1.0.573.1227 -->
<NowTicks>$([System.DateTime]::Now.Ticks)</NowTicks>
<TodayTicks>$([System.DateTime]::Today.Ticks)</TodayTicks>
<TicksSinceMidnight>$([MSBuild]::Subtract($(NowTicks), $(TodayTicks)))</TicksSinceMidnight>
<MinutesSinceMidnight>$([MSBuild]::Divide($(TicksSinceMidnight), 600000000))</MinutesSinceMidnight>
<Floored>$([System.Math]::Floor($(MinutesSinceMidnight)))</Floored>
<Revision>$(Floored)</Revision>
</PropertyGroup>
</Project>