It appears that failures on NUNIT2 tasks are not being detected. Failure on the CSC task seems to work properly (subsequent dependent targets do not execute), but a failure on the NUNIT2 task does not appear to stop processing of subsequent targets (the error is reported correctly, but processing continues.. even with FAILONERROR and HALTONFAILURE set to "true"). Perhaps it has something to do with my NUNIT2 task in a loop:
<foreach item="File" in="${Full.Build.OutputDir}" property="filename" failonerror="false">
<nunit2 failonerror="true" haltonfailure="true" verbose="true">
<formatter type="Xml" outputdir="$Full.NUnit.LogFolder}" usefile="true" extension=".xml" />
<test>
<assemblies basedir="${Full.Build.OutputDir}">
<include name="${filename}"/>
</assemblies>
</test>
</nunit2>
</foreach>
Has anyone else seen this?
LWS