Skip to content

Commit b948674

Browse files
committed
Try to handle missing build.counter
1 parent 08f02dc commit b948674

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

default.build

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
<target name="build"
3030
depends="init prepare-build-directory nuget.set-properties"
3131
description="Builds NHibernate in the current configuration">
32+
<property name="build.counter" value="" overwrite="false" />
3233

3334
<exec program="dotnet" verbose="true">
3435
<arg value="msbuild" />
@@ -39,8 +40,8 @@
3940
<arg value="/p:IncludeSymbols=&quot;True&quot;" />
4041
<arg value="/p:IncludeSource=&quot;True&quot;" />
4142
<arg value="/p:PackageOutputPath=&quot;${path::get-full-path(nuget.nupackages.dir)}&quot;" />
42-
<!-- build.counter is not avaialbe by default. It needs to be exposed in Team City as system paramter system.build.counter with value %build.counter% -->
43-
<arg value="/p:BuildNumber=&quot;${build.counter}&quot;" if="${property::exists('build.counter')}" />
43+
<!-- 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% -->
44+
<arg value="/p:BuildNumber=&quot;${build.counter}&quot;" />
4445
<arg value="/t:Restore" />
4546
<arg value="/t:Rebuild" />
4647
<arg value="/v:q" />

0 commit comments

Comments
 (0)