Hi,

The attached patch for Element.cs allows case-insensitive lookup of
enumeration values in the build file. 

A number of tasks use an enum to specify a closed set of task
parameters. For instance, the foreach task uses the LoopItem enum to
specify the type of iteration that should be done. Without the  patch,
these parameters had to be specified with the exact casing used in the
enumeration. The attached patch fixes this, and allows one to specify
these parameters with any casing. I would prefer to allow only lower
case, just like any other task attribute, but there is no simple way to
do that without actually changing the enum definitions.

Cheers,

Arjen

Attachment: nant-ignorecase-enum.patch
Description: nant-ignorecase-enum.patch

Reply via email to