BuildAutomation/compile.xml

(开头部分) 2KB

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

<project xmlns="http://nant.sf.net/release/0.85-rc3/nant.xsd" name="Application.Compile" default="Compile.Execute">
	<!-- <loadtasks assembly="..\lib\External\NAntContrib\0.85\NAnt.Contrib.Tasks.dll" /> -->
	
	<include buildfile="${args.settings.file}" />
	
	
	<!-- ****************************************************************************************
		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="Compile.CheckArguments">
		
		<!-- Check if solution or project file path was passed in. -->		
		<if test="${property::exists('args.solutionOrProject')}">				
			<property name="compile.solutionOrProject" value="${args.solutionOrProject}"/>
		</if>		
		
		<!-- Check if the target was passed in. -->
		<if test="${property::exists('args.target')}">				
			<property name="compile.target" value="${args.target}"/>		
		</if>		
		
		<!-- Check if the configuration was passed in. -->
		<if test="${property::exists('args.configuration')}">				
			<property name="compile.configuration" value="${args.configuration}"/>
		</if>		
				
		<!-- Check if the configuration was passed in. -->
		<if test="${property::exists('args.workingDir')}">				
			<property name="compile.workingDir" value="${args.workingDir}"/>
		</if>		
		
	</target>

	
	<!-- ****************************************************************************************
		compiles the solution or project as :
		MSBuild MyApp.sln /t:Rebuild /p:Configuration=Release
	          MSBuild MyApp.csproj /t:Clean /p:Configuration=Debug
	*******************************************************************************************-->
	<target name="Compile.RunCompilation">
		<!--
		<echo message="Compiling with msbuild task" />
		<msbuild project="${solutionOrProject}" target="${target}">			
			<property name="Configuration" value="${configuration}"/>
		</msbuild>
		-->		
		<echo message="Compiling : ${compile.compiler} ${compile.solutionOrProject} /t:${compile.target} /p:Configuration=${compile.configuration}" />
		
		<exec program="${compile.compiler}" workingdir="${compile.workingDir}" 
				failonerror="false">
			<arg value="${compile.solutionOrProject}" />
			<arg value="/t:${compile.target}" />
			<arg value="/p:Configuration=${compile.configuration}" />
		</exec>
	
	</target>
	
后面还有 13 行代码,解锁后查看完整代码

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

AI 解读

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

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