2021-02-25 02:50:31 +03:00
<Project>
2019-06-06 16:24:00 +03:00
<PropertyGroup>
<NightlyTag>nightly</NightlyTag>
</PropertyGroup>
2019-05-22 03:06:59 +03:00
2021-03-02 20:36:17 +03:00
<PropertyGroup>
<CoreCompileDependsOn>
SetVersions;
$(CoreCompileDependsOn);
</CoreCompileDependsOn>
<GenerateNuspecDependsOn>
SetVersions;
$(GenerateNuspecDependsOn);
</GenerateNuspecDependsOn>
2021-03-03 18:20:03 +03:00
<GetPackageVersionDependsOn>
SetVersions;
$(GetPackageVersionDependsOn);
</GetPackageVersionDependsOn>
<SetVersionsBefore>
GetAssemblyVersion;
$(SetVersionsBefore);
</SetVersionsBefore>
<SetVersionsDependsOn>
$(SetVersionsDependsOn);
</SetVersionsDependsOn>
2021-03-02 20:36:17 +03:00
</PropertyGroup>
2024-05-23 00:04:31 +03:00
<Target Name="SetVersions"
BeforeTargets="$(SetVersionsBefore)"
DependsOnTargets="$(SetVersionsDependsOn)"
Returns="$(Version)">
2019-11-14 02:44:47 +03:00
<PropertyGroup>
2024-05-15 20:32:30 +03:00
<PreReleaseVersionLabel Condition="$(CI) and '$(BUILD_REASON)' == 'Schedule'">$(NightlyTag)</PreReleaseVersionLabel>
2019-11-14 02:44:47 +03:00
</PropertyGroup>
2024-05-15 20:32:30 +03:00
2019-05-22 03:06:59 +03:00
<ItemGroup>
2024-05-15 20:32:30 +03:00
2019-05-22 03:06:59 +03:00
<VersionMetadata Condition="$(CI) and '$(BUILD_REASON)' == 'PullRequest'"
Include="pr.$(SYSTEM_PULLREQUEST_PULLREQUESTNUMBER)"/>
2024-05-07 15:49:39 +03:00
<VersionMetadata Condition="'$(SourceLinkId)' != ''" Include="sha.$(SourceLinkId)"/>
2019-05-22 03:06:59 +03:00
<VersionMetadata Condition="$(CI)"
Include="azdo.$(BUILD_BUILDID)"/>
</ItemGroup>
<PropertyGroup>
2024-05-15 20:32:30 +03:00
<PackageReferenceVersion>$(PackageVersion)</PackageReferenceVersion>
<VSComponentVersion Condition="'$(PreReleaseVersionLabel)' != ''">$(MajorVersion).$(MinorVersion).$(PatchVersion).$(BUILDVERSION)</VSComponentVersion>
<VSComponentVersion Condition="'$(PreReleaseVersionLabel)' == ''">$(MajorVersion).$(MinorVersion).$(PatchVersion).0</VSComponentVersion>
2019-05-22 03:06:59 +03:00
</PropertyGroup>
2024-05-23 00:04:31 +03:00
<PropertyGroup>
2024-10-15 14:51:43 +03:00
<_SkipUpdateBuildNumber Condition="'$(SampleProject)' == 'true' or '$(OutputType)' == 'Exe' or '$(OutputType)' == 'WinExe' or '$(AndroidApplication)' == 'true' or '$(IsTestProject)' == 'true' or '$(IsPackable)' == 'false' or '_SkipUpdateBuildNumber' == 'true' ">true</_SkipUpdateBuildNumber>
2024-05-23 00:04:31 +03:00
<_UpdateBuildNumber Condition="$(CI) and '$(BUILD_BUILDNUMBER)' != '$(PackageVersion)' AND '$(_SkipUpdateBuildNumber)' != 'true'">$(PackageVersion)</_UpdateBuildNumber>
</PropertyGroup>
<Error Condition="'$(_UpdateBuildNumber)' == '1.0.0'" Text="Unexpected _UpdateBuildNumber: '$(_UpdateBuildNumber)'" />
<PropertyGroup Condition="'$(_UpdateBuildNumber)' != ''">
<_UpdateBuildNumber Condition="'@(VersionMetadata)' != ''">$(_UpdateBuildNumber)+@(VersionMetadata -> '%(Identity)', '.')</_UpdateBuildNumber>
</PropertyGroup>
2019-06-06 18:16:22 +03:00
<Message Condition="$(CI) and '$(BUILD_REASON)' == 'Schedule'" Importance="high" Text="##vso[build.addbuildtag]$(NightlyTag)"/>
2024-05-23 00:04:31 +03:00
<Message Condition="'$(_UpdateBuildNumber)' != ''" Importance="high" Text="##vso[build.updatebuildnumber]$(_UpdateBuildNumber)"/>
2019-05-22 03:06:59 +03:00
</Target>
</Project>