It's not really a fix in my opinion, but I fixed things by removing the <sysinfo/> task. After removing that, I had no problem running nant with the ccnet provider. Thanks.
On Oct 19, 12:47 pm, Michael Powell <[email protected]> wrote: > ... > > 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.
