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

Category: Tasks
>Group: cvs
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: cvanik (cvanik)
>Assigned to: Gert Driesen (drieseng)
Summary: solution task 

Initial Comment:
I have TreatWarningsAsErrors = "true" set in all 
my .csproj files.

I'm trying to compile with the solution task.  I have 
unreachable code in one of my files.  It shows up as an 
error when building in Visaual Studo.  Nant builds 
successfuully.

I don't think the solution task is passing in the value of 
TreatWarningsAsErrors to csc, so csc is using the 
default value (which is probably false).

I have failonerror=true.
It may be related to 
http://sourceforge.net/tracker/index.php?
func=detail&aid=1080237&group_id=31650&atid=402868

but I'm trying to compile c# code.

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

>Comment By: Gert Driesen (drieseng)
Date: 2005-01-20 07:28

Message:
Logged In: YES 
user_id=707851

We now perform a case-insensitive comparison for boolean 
values.

Try the latest nightly build 
(http://nant.sourceforge.net/nightly/latest).

Thanks for the report !


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

Comment By: Gert Driesen (drieseng)
Date: 2005-01-07 16:28

Message:
Logged In: YES 
user_id=707851

I see the reason for the issue you're having:

We are always doing a case-sensitive comparison for boolean 
values. In this case, we check for "true" not "True".

I guess we could update NAnt to perform a case-insensitive 
comparison.

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

Comment By: cvanik (cvanik)
Date: 2005-01-07 15:28

Message:
Logged In: YES 
user_id=1190951

Here's the .csproj file.

Quick Note.  I wonder if this is causing my problem.  I use the 
nant task xml poke right before I compile to ensure developers 
have warnaserror set to true.  XML poke changes the format 
of the .csproj file (At least it looks different when I open it in 
notepad but I think were only talking about beautification) 
because visual studio .net still compiles with it.



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

Comment By: Gert Driesen (drieseng)
Date: 2005-01-06 23:30

Message:
Logged In: YES 
user_id=707851

Can you attach your project file to this bug report ?



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

Comment By: cvanik (cvanik)
Date: 2005-01-06 22:47

Message:
Logged In: YES 
user_id=1190951

I just doubled checked with Nant's latest BUILD.  Nant is not 
carrying over the value of warnaserror from the .csproj value 
to csc. 

Here is an excerpt from my NANT log.  U can see that there is 
no mention of warnaserror.


 <message level="Verbose"><![CDATA[Copying references:]]
></message>
<message level="Verbose"><![CDATA[Starting compiler...]]
></message>
            <message level="Verbose"><![CDATA[Commands:]]
></message>
            <message level="Verbose"><![CDATA[/target:library]]
></message>
            <message level="Verbose"><![CDATA[/nologo]]
></message>
            <message level="Verbose"><![CDATA[/filealign:4096]]
></message>
            <message level="Verbose"><![CDATA
[/define:DEBUG;TRACE]]></message>
            <message level="Verbose"><![CDATA[/warn:4]]
></message>
            <message level="Verbose"><![CDATA
[/baseaddress:11000000]]></message>
            <message level="Verbose"><![CDATA[/optimize-]]
></message>
            <message level="Verbose"><![CDATA[/debug+]]
></message>
            <message level="Verbose"><![CDATA[/incremental+]]
></message>
            <message level="Verbose"><![CDATA[/checked-]]
></message>
            <message level="Verbose"><![CDATA[/unsafe-]]
></message>
            <message level="Verbose"><![CDATA
[/out:"c:\loaddescdb\src\c#\ 

>From Cruise Control 
BUILD SUCCESSFUL 
Project: loaddescdb 
Date of build: 01/06/2005 03:50:45 PM 
Running time: 00:03:54 
    
  test details |  test timing |  original log |  FxCop   
Errors/Warnings (1)  
 
c:\loaddescdb\SRC\c#\loaddescdb\Class1.cs(555,6): warning 
CS0162: Unreachable code detected 
 
 

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

Comment By: cvanik (cvanik)
Date: 2005-01-06 21:18

Message:
Logged In: YES 
user_id=1190951

Really?  I used the nant build from a Monday night and the 
same thing happen.  csc is reporting the warning, it's even 
showing up in my cruisecontrol web page.  However, Nant 
isn't failing and the build is unfortionetly building succesfully.  
I'll try the latest build and see what happens.

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

Comment By: Gert Driesen (drieseng)
Date: 2005-01-06 21:03

Message:
Logged In: YES 
user_id=707851

This is working fine for me.

What version of NAnt are you using ?

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

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


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to