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
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?
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.
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
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:
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
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