Skip to content

Commit 9de105d

Browse files
committed
Use a more verbose version for pull requests
This should prevent conflicts when two PRs have the same "height" value
1 parent 8617745 commit 9de105d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

projects/RabbitMQ.Client/RabbitMQ.Client.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@
2828
<PackageOutputPath>..\..\packages</PackageOutputPath>
2929
</PropertyGroup>
3030

31+
<Target Name="SetVersionFromPullRequest" AfterTargets="MinVer" Condition="'$(CONCOURSE_PULL_REQUEST_NUMBER)' != ''" >
32+
<PropertyGroup>
33+
<PackageVersion>$(MinVerMajor).$(MinVerMinor).$(MinVerPatch)-pr.$(CONCOURSE_PULL_REQUEST_NUMBER).build-id.$(CONCOURSE_BUILD_ID).$(MinVerPreRelease)</PackageVersion>
34+
<PackageVersion Condition="'$(MinVerBuildMetadata)' != ''">$(PackageVersion)+$(MinVerBuildMetadata)</PackageVersion>
35+
<Version>$(PackageVersion)</Version>
36+
</PropertyGroup>
37+
</Target>
38+
3139
<ItemGroup>
3240
<Compile Include="..\..\gensrc\autogenerated-api-0-9-1.cs" />
3341
<None Remove="icon.png" />

0 commit comments

Comments
 (0)