Skip to content
This repository
Browse code

- Modified build script to support build number from TeamCity.

  • Loading branch information...
commit 74725744404f43f91adaf610d83ab1b23f8ca3cc 1 parent fff0bb4
authored October 22, 2012

Showing 1 changed file with 5 additions and 3 deletions. Show diff stats Hide diff stats

  1. 8  Build/Scripts/Build.build
8  Build/Scripts/Build.build
@@ -36,8 +36,10 @@
36 36
 	<!-- COMMON ASSEMBLY INFO
37 37
 		Properties used when creating the common assembly info file
38 38
 	-->
39  
-	<property name="project.version.number" value="2.0.0" />
  39
+	<property name="build.number" value="0" />
  40
+	<property name="project.version.number" value="2.0.0.${build.number}" />
40 41
 	<property name="project.version.label" value="2.0.0-alpha2" /><!-- Example: 1.0.0-beta1 -->
  42
+	<property name="project.version.label" value="${project.version.label}-build${build.number}" if="${build.number != '0'}" />
41 43
 	<property name="project.config" value="release" />
42 44
 	
43 45
 	<!-- PROJECTS TO BUILD
@@ -103,8 +105,8 @@
103 105
 	
104 106
 	<target name="AssemblyInfo" description="Create CommonAssemblyInfo">
105 107
 	
106  
-		<property name="assembly-version" value="${project.version.number}.0000" />
107  
-		<property name="assembly-file-version" value="${project.version.number}.0000" />
  108
+		<property name="assembly-version" value="${project.version.number}" />
  109
+		<property name="assembly-file-version" value="${project.version.number}" />
108 110
 
109 111
 		<asminfo output="..\..\CommonAssemblyInfo.cs" language="CSharp" verbose="${verbose}">
110 112
 			<imports>

0 notes on commit 7472574

Please sign in to comment.
Something went wrong with that request. Please try again.