How to execute nant build file from another build file?

2.8k Views Asked by At

I have a big project here where I created some build files which I use in different scenarios including ccnet. So, I have BF1.build and BF2.build

I just want somewhere in BF1 to call/execute the script from BF2.build

1

There are 1 best solutions below

0
On BEST ANSWER

You can delete that. Just found a solution:

<target name="somename" >

<nant>
    <buildfiles>
        <include name="BF2.build" />
    </buildfiles>
</nant>  </target>

NAnt docs