Home | History | Annotate | Download | only in CSharp2
      1 <?xml version="1.0"?>
      2 <project name="Common Build Properties">
      3 
      4 	<!-- Common properties that allow overrides -->
      5 
      6 	<property name="rootbuild.dir" 		value="${directory::get-current-directory()}" />
      7 		
      8 	<property name="build.dest.dir" 	value="${rootbuild.dir}/build/${framework::get-target-framework()}" />
      9 	<property name="build.working.dir" 	value="${rootbuild.dir}/bin" />
     10 
     11 	<property name="strong_name"		value="NANT_STRONGNAME"	unless="${property::exists('strong_name')}" />
     12 	<property name="debug"				value="false"			unless="${property::exists('debug')}" />
     13 	<property name="optimize"			value="true"			unless="${property::exists('optimize')}" />
     14 	<property name="doc.dir"			value="${base.dir}/docs" />
     15 	<property name="nunit.formatter"	value="Plain"			unless="${property::exists('nunit.formatter')}" />
     16 	<property name="os" 				value="${operating-system::to-string(environment::get-operating-system())}" />
     17 	<property name="isWindows" 			value="${string::starts-with(os, 'Microsoft Windows')}" />
     18 	<property name="isMono" 			value="${string::starts-with(framework::get-target-framework(),'mono')}" />
     19 	<property name="target.clr" 		value="${framework::get-target-framework()}" />
     20 	
     21 	<if test="${framework::get-target-framework()=='netcf-1.0'}">
     22 	    <fail message=".NET-CF is not supported. Please use the .NET Framework or Mono." />
     23 	</if>
     24     
     25 	<if test="${framework::get-target-framework()=='net-1.1' or framework::get-target-framework()=='mono-1.0'}">
     26 	    <property name="dotnet_define"  value="DOTNET1" />
     27 	</if>
     28 	<if test="${not (framework::get-target-framework()=='net-1.1') and not (framework::get-target-framework()=='mono-1.0')}">
     29 	    <property name="dotnet_define"  value="DOTNET2" />
     30 	</if>
     31 
     32 
     33 	<!-- find out where nunit.framework.dll is -->
     34 
     35 	<property name="lib.dir"
     36 		value="${path::combine(nant::get-base-directory(), 'lib')}"
     37 		dynamic="true" />
     38 		
     39 	<property name="lib.family.dir"
     40 		value="${path::combine(lib.dir,framework::get-family(framework::get-target-framework()))}"
     41 		dynamic="true" />
     42 	
     43 	<!-- for nant 0.85 rc2 or higher -->
     44 	
     45 	<property name="lib.framework.dir"
     46 		value="${path::combine(lib.family.dir, version::to-string(framework::get-version(framework::get-target-framework())))}"
     47 		dynamic="true" />
     48 
     49     <!-- Uncomment this block for nant backward compatibility
     50 	<property name="lib.framework.dir"
     51 		value="${path::combine(lib.family.dir, framework::get-version(framework::get-target-framework()))}"
     52 		dynamic="true" />
     53     -->
     54 		
     55 	<property name="nunit.framework.dll"
     56 			value="${path::combine(lib.framework.dir, 'nunit.framework.dll')}" />
     57 
     58 	<property name="nant.tasks.nunit2"
     59 			value="False"
     60 			unless="${property::exists('nant.tasks.nunit2')}" />
     61 
     62 </project>
     63