aspnet_compiler.exe ignore warning messages

View: New views
5 Messages — Rating Filter:   Alert me  

aspnet_compiler.exe ignore warning messages

by gmoney :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi I use the "aspnet_compiler.exe" in my nant script to compile a asp.net website. There are warnings messages that are being outputted. I only am interested in errors, therefore how can i only see errors and not warnings? My code is as follows:

<exec program="${dotnet}/aspnet_compiler.exe" commandline="-f -u -p ${BuildDirIE} -v / ${outputFolderIE}" verbose="true" failonerror="false"/>

Re: aspnet_compiler.exe ignore warning messages

by Michael Pento :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Unless there is an option for aspnet_compiler.exe itself (I didn't see
one ...) to squelch warnings only, I don't think that the exec task can
do this.

Mike

-----Original Message-----
From: gmoney [mailto:g.labana@...]
Sent: Thursday, October 08, 2009 10:16 AM
To: nant-users@...
Subject: [NAnt-users] aspnet_compiler.exe ignore warning messages


Hi I use the "aspnet_compiler.exe" in my nant script to compile a
asp.net
website. There are warnings messages that are being outputted. I only am
interested in errors, therefore how can i only see errors and not
warnings?
My code is as follows:

<exec program="${dotnet}/aspnet_compiler.exe" commandline="-f -u -p
${BuildDirIE} -v / ${outputFolderIE}" verbose="true"
failonerror="false"/>
--
View this message in context:
http://www.nabble.com/aspnet_compiler.exe-ignore-warning-messages-tp2580
3015p25803015.html
Sent from the NAnt - Users mailing list archive at Nabble.com.


------------------------------------------------------------------------
------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
NAnt-users mailing list
NAnt-users@...
https://lists.sourceforge.net/lists/listinfo/nant-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
NAnt-users mailing list
NAnt-users@...
https://lists.sourceforge.net/lists/listinfo/nant-users

Re: aspnet_compiler.exe ignore warning messages

by Bob Archer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If the command line of the tool doesn't support an errors only output option then you may have trouble with this. If that tools supports STDOUT and ERROUT you may be able to redirect the output to a file and if you get an error return code you can read in the error output and echo it to your build log. I have done this will tools that allow the output to be directed to a file and then parse the output for error messages.

BOb


> -----Original Message-----
> From: gmoney [mailto:g.labana@...]
> Sent: Thursday, October 08, 2009 10:16 AM
> To: nant-users@...
> Subject: [NAnt-users] aspnet_compiler.exe ignore warning messages
>
>
> Hi I use the "aspnet_compiler.exe" in my nant script to compile a
> asp.net
> website. There are warnings messages that are being outputted. I only
> am
> interested in errors, therefore how can i only see errors and not
> warnings?
> My code is as follows:
>
> <exec program="${dotnet}/aspnet_compiler.exe" commandline="-f -u -p
> ${BuildDirIE} -v / ${outputFolderIE}" verbose="true"
> failonerror="false"/>
> --
> View this message in context:
> http://www.nabble.com/aspnet_compiler.exe-ignore-warning-messages-
> tp25803015p25803015.html
> Sent from the NAnt - Users mailing list archive at Nabble.com.
>
>
> -----------------------------------------------------------------------
> -------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart
> your
> developing skills, take BlackBerry mobile applications to market and
> stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> NAnt-users mailing list
> NAnt-users@...
> https://lists.sourceforge.net/lists/listinfo/nant-users

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
NAnt-users mailing list
NAnt-users@...
https://lists.sourceforge.net/lists/listinfo/nant-users

Re: aspnet_compiler.exe ignore warning messages

by gmoney :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


gmoney wrote:
Hi I use the "aspnet_compiler.exe" in my nant script to compile a asp.net website. There are warnings messages that are being outputted. I only am interested in errors, therefore how can i only see errors and not warnings? My code is as follows:

<exec program="${dotnet}/aspnet_compiler.exe" commandline="-f -u -p ${BuildDirIE} -v / ${outputFolderIE}" verbose="true" failonerror="false"/>

http://msdn.microsoft.com/en-us/library/ms229863%28VS.100%29.aspx 

It appears the compiler does not suuport this message. Is it possible to at least attach the details of the message as an email attachment. I use the code from:

http://nant.sourceforge.net/release/latest/help/fundamentals/listeners.html i.e. the MailLogger, but the output seems to be in the body of the email.

Re: aspnet_compiler.exe ignore warning messages

by Chris Lambrou-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Getting aspnet_compiler.exe to suppress warnings is really a question
for a MS .NET support forum. However, I've looked into this recently,
and you're basically out of luck - you can't suppress the warnings. You
could perhaps consider one of the following options:

1)  Fix the warnings. Sure, they're not hard errors, but some warnings
are important, so it's best not to allow your code-base to fill up with
unaddressed warnings.

2)  Find out about the exit code of aspnet_compiler.exe and see if it's
possible to distinguish between warnings and errors. I wouldn't hold my
breath, though. I'm fairly sure I've read that an exit-code of 1 occurs
in both scenarios.

3)  Consider parsing the output of aspnet_compiler.exe. Errors are
reported in preference to warnings, so if you can reliably detect a
warning reported in the output, you can [probably] assume there are no
errors.


Good luck!



Chris
 

-----Original Message-----
From: gmoney [mailto:g.labana@...]
Sent: 08 October 2009 15:16
To: nant-users@...
Subject: [NAnt-users] aspnet_compiler.exe ignore warning messages


Hi I use the "aspnet_compiler.exe" in my nant script to compile a
asp.net
website. There are warnings messages that are being outputted. I only am
interested in errors, therefore how can i only see errors and not
warnings?
My code is as follows:

<exec program="${dotnet}/aspnet_compiler.exe" commandline="-f -u -p
${BuildDirIE} -v / ${outputFolderIE}" verbose="true"
failonerror="false"/>
--
View this message in context:
http://www.nabble.com/aspnet_compiler.exe-ignore-warning-messages-tp2580
3015p25803015.html
Sent from the NAnt - Users mailing list archive at Nabble.com.


------------------------------------------------------------------------
------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
NAnt-users mailing list
NAnt-users@...
https://lists.sourceforge.net/lists/listinfo/nant-users

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
NAnt-users mailing list
NAnt-users@...
https://lists.sourceforge.net/lists/listinfo/nant-users