Darren Gage wrote: > > I run FxCop via the <exec> command so I am sure to run the same > Command Line version we do when running FxCop through Visual Studio. > The Task is below: > > ... > > When I get FxCop Errors or Warnings, the build does not fail (I don't > reach the catch block), even though I have failonerror="true". Any > ideas why? > > Note that this try catch setup works fine for other exe's. > Are you sure that FxCop is actually setting the return code? Run the FxCop command manually and check the return status (%errorlevel% if you use the DOS shell).
Gary ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users