BuildAutomation/version.xml

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。


<project xmlns="http://nant.sf.net/release/0.85-rc3/nant.xsd" name="Application.Versioning" default="Version.Execute">
	<!--If you want to change the working directory of this task set the base.dir variable-->
	<!--If you want the version to be other than CCNetLabel validated set the versioning.label; the version has to be 
	of the following format x.y.z.n where x, y, z and n are numbers.  
	base.dir
	-->
	
	<include buildfile="${args.settings.file}" />
	
	<!-- ****************************************************************************************
		This does the following : 
		1.  Obtains all the AssemblyVersion.cs files in the working directory and it's sub-directories.
		2. Autogenerates 
	      **************************************************************************************** -->
	<target name="Version.Execute">
		<call target="Version.CheckArguments"/>
		<call target="Version.PrintVersionInfo" />
		<call target="Version.ObtainVersionFromBuildLabel" />
		<call target="Version.WriteAssemblyVersion" />
	</target>
	
	
	<!-- ****************************************************************************************
		This obtains the base directory for the application from the arguments and sets the working directory.
		args passed in:
			1. base.dir
			2. CCNetNumericLabel
	      **************************************************************************************** -->
	<target name="Version.CheckArguments">
		
		<!-- Check if the base directory was passed in. -->		
		<if test="${property::exists('args.base.dir')}">				
			<property name="app.base.dir" value="${args.base.dir}"/>
		</if>		
		
		<!-- Check if the source directory to build was passed in. -->
		<if test="${property::exists('args.source.dir')}">				
			<property name="app.source.dir" value="${args.source.dir}"/>		
		</if>		
		
		<!-- Check if the source directory to build was passed in. -->
		<if test="${property::exists('args.label.prefix')}">				
			<property name="build.label.prefix" value="${args.label.prefix}"/>		
		</if>
		
		<!-- Check if the build label was passed in. -->
		<if test="${property::exists('CCNetLabel')}">
			<call target="Version.ValidateBuildLabel"/>
		
			<ifnot test="${Version.isValidCruiseControlLabel}">
				<fail message="argument : 'CCNetLabel' is not in a valid format APP.major.minor.revision.build" />
			</ifnot>
			
			<if test="${Version.isValidCruiseControlLabel}">
				<property name="build.label" value="${CCNetLabel}"/>
			</if>
		</if>		
			
		<property name="Version.workDir" value="${app.base.dir}\${app.source.dir}"/>	
后面还有 109 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。