I think I found a bug in the NAnt task for Candle - specifically the "defines" and "define" elements used to assign values to preprocessor variables. If more than 1 Define element exists, only the first one appears to be passed to Candle.
Ex: assume Wix file requires preprocessor variables (var.Version) and (var.ProjectDir) <!-- in NAnt build file --> <candle out="Build\" extensions="WixUIExtension" verbose="true"> <sources basedir=".\" > <include name="*.wxs" /> </sources> <defines> <define name="Version" value="1.0.0.0" /> <define name="ProjectDir" value="WixProject\" /> </defines> </candle> Running NAnt will produce the following error: "Undefined preprocessor variable 'var.ProjectDir'" If I switch the order of defines to this: <defines> <define name="ProjectDir" value="WixProject\" /> <define name="Version" value="1.0.0.0" /> </defines> I'll get the error "Undefined preprocessor variable 'var.Version'" I've been able to work around this via the exec command and hand-coding the -d parameters. I didn't find this behavior reported in the bug database. Is this a bug in Wix 3.5, or might this be specific to my environment (running NAnt 0.91 on Windows 7)? -- Adam Kaplan Consultant II Princeton Consultants, Inc. 590 5th Avenue, 16th Floor New York, NY 10036 ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users