[Mono-bugs] [Bug 676650] New: FileLogger throws on setting parameters

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Mar 3 06:52:14 EST 2011



           Summary: FileLogger throws on setting parameters
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.10.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Ms.Build
        AssignedTo: marek.sieradzki at gmail.com
        ReportedBy: david at dasz.at
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13

System.ApplicationException: Compilation failed ---> System.ArgumentException:
Invalid parameter : logfile=bin/compile.log
  at Microsoft.Build.BuildEngine.ConsoleLogger.ParseParameters () [0x000bd] in
  at Microsoft.Build.BuildEngine.ConsoleLogger.set_Parameters (System.String
value) [0x00028] in

This is due to FileLogger being implemented by inheriting empty from
ConsoleLogger. ConsoleLogger doesn't know the "logfile" parameter => boom.
Here's the relevant piece of code, triggering this:

  using Microsoft.Build.BuildEngine;

  var logger = new FileLogger();
  logger.Parameters = String.Format(@"logfile={0}", Path.Combine(workingPath,

Reproducible: Always

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list