Re: [NAnt-users] Problem setting a property conditionally where the value is a variable that may not have been set

2007-02-16 Thread Cornish, Merrill
You can't use the if= attribute in a task statement to protect a reference to something else in that same task statement. All of the attributes to the task (in your case, ) are evaluated, then passed to the task body. So, by the time sees that the if attribute is false, the XML interpreter has a

[NAnt-users] Problem setting a property conditionally where the value is a variable that may not have been set

2007-02-16 Thread David Jones
Hi folks, hope you can help me as it looks to me like this should be a very simple problem but I've been going round in circles. I have a target in an included build file to run msbuild on a .csproj file and it overwrites some of the settings in the proj file if certain nant properties are set. In