Bugs item #1175393, was opened at 2005-04-02 17:11
Message generated for change (Comment added) made by drieseng
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1175393&group_id=31650

Category: Tasks
Group: cvs
>Status: Closed
>Resolution: Rejected
Priority: 5
Submitted By: Conor MacNeill (conormac)
>Assigned to: Gert Driesen (drieseng)
Summary: solution task nowarn setting does not work

Initial Comment:
When a solution project specifies a nowarn setting, it
will specify the warning number with a prefix, such as
CS0618. The <solution> task passes this verbatim to the
compiler's /nowarn: option as
  /nowarn:CS0618

Unfortunately the compiler (csc at least, have not
cheked the others) does not accept warnings in this
form and you receive the following error message:

error CS1904: 'CS0618' is not a valid warning number

It appears the CS prefix needs to be stripped off first.


----------------------------------------------------------------------

>Comment By: Gert Driesen (drieseng)
Date: 2005-04-02 18:29

Message:
Logged In: YES 
user_id=707851

I think the <solution> task behaviour is better than that of 
VS.NET.  VS.NET will not strip the CS prefix, instead it will 
just ignore the warning number.

I don't think we should keep a list of valid warning numbers 
(VS.NET 2003 even ignores warning numbers that are not 
supported by the C# compiler, eg. 9999).

Why don't you just specify the warning numbers without CS 
prefix ?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1175393&group_id=31650


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to