...

On Fri, Oct 14, 2011 at 5:08 PM, Brendan <[email protected]> wrote:

> I am getting an error in my nant script when the nant task runs:
> Property name 'sys.env.commonprogramfiles(x86)' is invalid.
>
> After searching around, it seems a lot of people have been able to
> resolve this issue by running nant in a 32 bit command line window or
> powershell. The nant task does not seem to have that level of control
> though. Have you seen this problem before? Thanks.


In my experience, I always run my NAnt scripts through an <exec/> task,
which seems to work for me.

<exec>
   <!-- I have a code block defined for the NAnt executable. -->
   <cb:nant_exec />
    <!-- ... -->
    <buildArgs>-buildfile:"$(such_and_such)" $(nant_args)</buildArgs>
</exec>

Just curious, have you tried running your script apart from CC.NET to see
what you get? I find that advantageous to do. I find that saves me multiple
roundtrips through CC.NET.

Best of luck.

Reply via email to