Bugs item #1675297, was opened at 2007-03-06 22:57 Message generated for change (Comment added) made by drieseng You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1675297&group_id=31650
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core Group: 0.85 >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Wade Berrier (wberrier) >Assigned to: Gert Driesen (drieseng) Summary: NAnt doesn't compile with mcs >= 1.2.3 (Obsolete attribute) Initial Comment: Some attribute changes were made to the mono c-sharp compiler which were released in Mono 1.2.3. I've heard that future versions of csc with will warn about this type of code. In order to compile for now, I removed the obsolete attribute. Here's the output from a build: build: [csc] Compiling 154 files to '/usr/src/packages/BUILD/nant-0.85/build/mono-2.0.unix/nant-0.85-debug/bin/NAnt.Core.dll'. [resgen] Read in 200 resources from '/usr/src/packages/BUILD/nant-0.85/src/NAnt.Core/Resources/Strings.resx' [resgen] Writing resource file... Done. [csc] /usr/src/packages/BUILD/nant-0.85/src/NAnt.Core/Task.cs(404,33): error CS0809: Obsolete member `NAnt.Core.Task.InitializeElement(System.Xml.XmlNode)' overrides non-obsolete member `NAnt.Core.Element.InitializeElement(System.Xml.XmlNode)' [csc] Compilation failed: 1 error(s), 0 warnings BUILD FAILED - 0 non-fatal error(s), 1 warning(s) /usr/src/packages/BUILD/nant-0.85/src/NAnt.Core/NAnt.Core.build(11,10): External Program Failed: /usr/lib64/pkgconfig/../../lib/mono/2.0/gmcs.exe (return code was 1) Total time: 1.6 seconds. ---------------------------------------------------------------------- >Comment By: Gert Driesen (drieseng) Date: 2008-02-09 21:43 Message: Logged In: YES user_id=707851 Originator: NO This was fixed quite a while ago (see previous comments). ---------------------------------------------------------------------- Comment By: Wade Berrier (wberrier) Date: 2007-03-27 19:08 Message: Logged In: YES user_id=1150673 Originator: YES Note: /usr/src/packages/BUILD/nant-0.85/src/NAnt.Core/Task.cs(404,33): error CS0809: Obsolete member `NAnt.Core.Task.InitializeElement(System.Xml.XmlNode)' overrides non-obsolete member mcs is treating this as an error, not a warning. (csc should probably be doing the same, but as noted before, it will treat it as a warning in up coming versions). ---------------------------------------------------------------------- Comment By: Gert Driesen (drieseng) Date: 2007-03-06 23:04 Message: Logged In: YES user_id=707851 Originator: NO Wade, this should be working fine when using NAnt CVS. You're using NAnt 0.85 ? I should probably not be so strict about compiler warnings for official releases to avoid situations like this one. I currently treat all warnings as failures in order to keep our code clean. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1675297&group_id=31650 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers