Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > NAnt
|
NAnt For discussing the NAnt .NET build tool. When posting a question, please specify the version of NAnt you are using.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the NAnt section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 20th, 2008, 09:15 AM
Registered User
 
Join Date: Nov 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default NAnt - External Program Failed

when i execute the below command for fxcop through nant, i get build succeeded message but with 1 non-fatal error and 3 warnings.

command:
<exec program="C:\Program Files\Microsoft FxCop 1.35\fxcopcmd.exe" commandline="/p:D:\test\fxcoptest.fxcop /f:D:\test\abc.dll /f:D:\test\def.dll /f:D:\test\ghi.dll /o:D:\test\fxcoptest.xml /forceoutput" failonerror="false"/>

error:
[exec] External Program Failed: C:\Program Files\Microsoft FxCop 1.35\fxcopcmd.exe (return code was 8)
warnings:
[exec] Could not load file: 'D:\test\abc.dll'
[exec] Could not load file: 'D:\test\def.dll'
[exec] Could not load file: 'D:\test\ghi.dll'

i want to avoid these errors and warnings. if anyone knows the solution, please respond.
 
Old November 20th, 2008, 10:40 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You have set failonerror to false for the exec task, so any failures by the exec will get logged as warnings. I don't think there is a way to avoid this.

Why not use the NAnt fxcop tasks that's built in? This might help to resolve the problems.

http://nantcontrib.sourceforge.net/r...sks/fxcop.html


-Peter
compiledthoughts.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to call an External program to run ? itayzoro VB.NET 2002/2003 Basics 0 July 31st, 2008 01:45 AM
i can not run external program. pumpui VS.NET 2002/2003 0 December 5th, 2004 02:08 PM
Loading Code to External Program algip ASP.NET 1.x and 2.0 Application Design 0 March 18th, 2004 03:21 PM
how to call an external program? schockp Oracle 2 November 13th, 2003 07:41 AM
Executing an external program. saint VB.NET 2002/2003 Basics 3 July 22nd, 2003 08:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.