Tuesday, January 31, 2006

NANT files and XML namespaces

NANT files and XML namespaces

Being a reader (worshiper?) of Scott's blog I happened upon
Intellisense and NAnt .build files in VS.NET back a while ago. Recently I also starting using nant include tasks to centralize common functions/scripts/targets in a single location. When you combine the two, beware: all included files in which you reference targets need to also include the same namespace for instance:

xmlns="http://nant.sf.net/schemas/nant-0.84.win32.net-1.0.xsd"

The only error you see is:

BUILD FAILED

Target 'foobar' does not exist in this project. It is used from target 'wombat'.


Enjoy!