[NAnt-users] Conditionally set property via environment varaible

2006-05-01 Thread Chris Holt
Im a newbie so forgive the uncertainty. Is this how you would conditionally set a property via environment variable: property name=myProp value=defaultVal / if test=${environment::variable-exists('MYENVVAR')} property name=myProp value=${environment::get-variable(MYENVVAR)} / /if

[NAnt-users] Error when trying to compare equality of string

2006-05-01 Thread Chris Holt
I have a task defined like: target name=CalculateBuildNum description=Calculates the build number if='${build.buildNum}' == 'Latest' This fails with an error like: Cannot resolve expanded value ''Latest' == 'Latest'' of 'if' attribute to a Booean value. What am I doing wrong?

RE: [NAnt-users] Has anyone used Nant to SUCCESSFULLY build a VC7.1 C++ project?

2006-05-16 Thread Chris Holt
The problem I believe is the /Wp64 argument. That argument says to make your code 64 bit compatible. Casting a pointer to DWORD is not allowed when that argument is set. I'm betting that that option is not set in your project file. It can't be or else you would be getting the same error.

Re: [NAnt-users] Can't use pipe (|) within exec

2006-07-20 Thread Chris Holt
Actually, I'm not sure that will work either. I think you have to do this: exec program=p4.exe commandline=label -o DevTemplate | sed -e quot;s/DevTemplate/dev01/gquot; | p4.exe label -i / -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

[NAnt-users] MSBuild

2006-07-25 Thread Chris Holt
Im trying to switch my nant script to use the msbuild task instead of executing devenv and Im not sure how to properly choose the build configuration. So for example, if I want to clean the Debug build of a solution file I understand that I need to have the task defined like this:

[NAnt-users] MSBuild task and setup/deployment projects

2006-07-25 Thread Chris Holt
Some said the following back in May about MSBUILD: At any rate, VS2005 has MSBuild, so until the solution task is updated for 2005, you could just call MSBuild. this is what I'm doing, and works well. It also has the advantage of building ALL project types, including Setup/Deployment

Re: [NAnt-users] MSBuild

2006-07-25 Thread Chris Holt
Not sure what you mean about the configuration property. The documentation of the msbuild task doesnt list a configuration property. Is there one that isnt documented? Chris From: Robinson, Heath [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 25, 2006 9:27 AM To: Chris Holt