tags:

views:

92

answers:

1

I want to import another build file into my current project so I can put all common properties in one place.

In ant you can simply use:

<import file="c:\tools\commonProperties.include" />

How to achieve that in NAnt?

+2  A: 

Use the include Task.

NAnt: include task

<include buildfile="GetProjectVersion.include" />
jitter
Doesn't work. The properties defined on the included file are not valid on the main build file.
andrecarlucci
This should definitely work. Make sure you're not having an issue with the `overwrite` attribute of the properties.
The Chairman
One thing: The properties in the included file need to be direct child nodes of the `project` node.
The Chairman