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