Skip to content

Commit 7ea830f

Browse files
committed
Provide commit in nuget details
1 parent 10bf730 commit 7ea830f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

build-common/NHibernate.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
2525
<PackageLicenseExpression>LGPL-2.1-only</PackageLicenseExpression>
2626
<PackageReleaseNotes Condition="'$(VersionSuffix)' == ''">https://github.com/nhibernate/nhibernate-core/blob/$(VersionPrefix)/releasenotes.txt</PackageReleaseNotes>
27-
<PackageReleaseNotes Condition="'$(PackageReleaseNotes)' == ''">This is development version for testing purposes only</PackageReleaseNotes>
27+
<PackageReleaseNotes Condition="'$(PackageReleaseNotes)' == ''">This is development version for testing purposes only $(BuildName)</PackageReleaseNotes>
2828
<PublishRepositoryUrl>true</PublishRepositoryUrl>
2929
<IncludeSymbols>true</IncludeSymbols>
3030
<SymbolPackageFormat>snupkg</SymbolPackageFormat>

default.build

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
depends="init prepare-build-directory nuget.set-properties"
3131
description="Builds NHibernate in the current configuration">
3232
<property name="build.counter" value="" overwrite="false" />
33+
<property name="build.number" value="" overwrite="false" />
3334

3435
<exec program="dotnet" verbose="true">
3536
<arg value="msbuild" />
@@ -42,6 +43,8 @@
4243
<arg value="/p:PackageOutputPath=&quot;${path::get-full-path(nuget.nupackages.dir)}&quot;" />
4344
<!-- build.counter is not available by default. It needs to be exposed in Team City as system parameter system.build.counter with value %build.counter% -->
4445
<arg value="/p:BuildNumber=&quot;${build.counter}&quot;" unless="${build.counter == ''}" />
46+
<!-- build.number includes git commit. Let's add it to dev nuget package info but only if build.counter is also provided -->
47+
<arg value="/p:BuildName=&quot;${build.number}&quot;" unless="${build.counter == ''}" />
4548
<arg value="/t:Restore" />
4649
<arg value="/t:Rebuild" />
4750
<arg value="/v:q" />

0 commit comments

Comments
 (0)