![Matt Mitchell](/assets/img/avatar_default.png)
- Enable the switch for stable builds - Fixup the calculation of FullNugetVersion to not include the iteration if it is empty
17 lines
811 B
XML
17 lines
811 B
XML
<Project>
|
|
<Target Name="GenerateFullNuGetVersion">
|
|
<PropertyGroup>
|
|
<FullNugetVersion>$(VersionPrefix)-$(PreReleaseVersionLabel)</FullNugetVersion>
|
|
<FullNugetVersion Condition="'$(PreReleaseVersionIteration)' != ''">$(FullNugetVersion).$(PreReleaseVersionIteration)</FullNugetVersion>
|
|
<FullNugetVersion Condition=" '$(VersionSuffixDateStamp)' != '' And '$(VersionSuffixBuildOfTheDay)' != '' ">$(FullNugetVersion).$(VersionSuffixDateStamp).$(VersionSuffixBuildOfTheDay)</FullNugetVersion>
|
|
</PropertyGroup>
|
|
</Target>
|
|
|
|
<Target Name="GetCommitHash">
|
|
<Exec Command="git rev-parse HEAD"
|
|
ConsoleToMSBuild="true"
|
|
Condition=" '$(GitCommitHash)' == '' ">
|
|
<Output TaskParameter="ConsoleOutput" PropertyName="GitCommitHash" />
|
|
</Exec>
|
|
</Target>
|
|
</Project>
|