Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > NAnt
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 20th, 2008, 09:15 AM
Registered User
 
Join Date: Nov 2008
Location: , , .
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.
Reply With Quote
  #2 (permalink)  
Old November 20th, 2008, 10:40 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:11 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.