2020-01-09 10:05:15 -08:00
|
|
|
<Project>
|
|
|
|
<Target Name="GenerateFullNuGetVersion">
|
|
|
|
<PropertyGroup>
|
2020-09-22 07:59:59 -07:00
|
|
|
<FullNugetVersion>$(VersionPrefix)-$(PreReleaseVersionLabel)</FullNugetVersion>
|
|
|
|
<FullNugetVersion Condition="'$(PreReleaseVersionIteration)' != ''">$(FullNugetVersion).$(PreReleaseVersionIteration)</FullNugetVersion>
|
2020-01-09 10:05:15 -08:00
|
|
|
<FullNugetVersion Condition=" '$(VersionSuffixDateStamp)' != '' And '$(VersionSuffixBuildOfTheDay)' != '' ">$(FullNugetVersion).$(VersionSuffixDateStamp).$(VersionSuffixBuildOfTheDay)</FullNugetVersion>
|
|
|
|
</PropertyGroup>
|
|
|
|
</Target>
|
2020-01-09 12:52:53 -08:00
|
|
|
|
|
|
|
<Target Name="GetCommitHash">
|
|
|
|
<Exec Command="git rev-parse HEAD"
|
|
|
|
ConsoleToMSBuild="true"
|
|
|
|
Condition=" '$(GitCommitHash)' == '' ">
|
|
|
|
<Output TaskParameter="ConsoleOutput" PropertyName="GitCommitHash" />
|
|
|
|
</Exec>
|
|
|
|
</Target>
|
2020-01-09 10:05:15 -08:00
|
|
|
</Project>
|