Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.11
    • Fix Version/s: 1.2.12
    • Component/s: Builds
    • Labels:
    • Environment:
      NAnt is 0.86 and Mono is 2.8.2
      NAnt is 0.91 and Mono is 2.10.8

      Description

      Fails to build with Mono > 2.6 with warn CS0419 treated as error.
      While cref contains argument type signature compiler complains with error: Ambiguous reference in cref attribute `log4net.Appender.AppenderSkeleton.DoAppend'. Assuming

      `log4net.Appender.AppenderSkeleton.DoAppend(log4net.Core.LoggingEvent)' but other overloads including `log4net.Appender.AppenderSkeleton.DoAppend(log4net.Core.LoggingEvent[])' have also matched


      See mail archive and pastebin

      Note that using signature "M:AppenderSkeleton.DoAppend(LoggingEvent)" as per B.3.1 ID string format helps to resolve this issue.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        13h 31m 1 Dominik Psenner 03/Sep/12 07:52
        In Progress In Progress Open Open
        2m 4s 1 Dominik Psenner 03/Sep/12 07:55
        Open Open Resolved Resolved
        23h 12m 1 Dominik Psenner 04/Sep/12 07:07
        Resolved Resolved Closed Closed
        1m 16s 1 Dominik Psenner 04/Sep/12 07:08
        Dominik Psenner made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Dominik Psenner made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Dominik Psenner added a comment -

        I resolve this issue because it is now fixed. Many thanks for the patch Nikolay!

        Show
        Dominik Psenner added a comment - I resolve this issue because it is now fixed. Many thanks for the patch Nikolay!
        Hide
        Nikolay Orlyuk added a comment -

        Dominik, thank you. Confirm: with Mono 2.10.8 trunk compiles without any mention of CS0419

        Show
        Nikolay Orlyuk added a comment - Dominik, thank you. Confirm: with Mono 2.10.8 trunk compiles without any mention of CS0419
        Dominik Psenner made changes -
        Labels mono
        Fix Version/s 1.2.12 [ 12318546 ]
        Dominik Psenner made changes -
        Status In Progress [ 3 ] Open [ 1 ]
        Hide
        Dominik Psenner added a comment -

        Commit'ed Your patch as revision 1380139, thanks! Would You please verify that the latest svn trunk of log4net now compiles with mono > 2.6?

        Show
        Dominik Psenner added a comment - Commit'ed Your patch as revision 1380139, thanks! Would You please verify that the latest svn trunk of log4net now compiles with mono > 2.6?
        Dominik Psenner made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Dominik Psenner made changes -
        Assignee Dominik Psenner [ nachbarslumpi ]
        Nikolay Orlyuk made changes -
        Attachment log4net-r1380006-cref.patch.xz [ 12543496 ]
        Hide
        Nikolay Orlyuk added a comment -

        Might be fixed with several (two is enough) runs of: find -name '.cs' -print0 | xargs -0 sed -i 's/(\/\/\/.*cref=")([^:"]()/\1M:\2/'
        Also attached resulted diff file.

        Show
        Nikolay Orlyuk added a comment - Might be fixed with several (two is enough) runs of: find -name ' .cs' -print0 | xargs -0 sed -i 's/(\/\/\/.*cref=")( [^:"] ()/\1M:\2/' Also attached resulted diff file.
        Nikolay Orlyuk made changes -
        Description Fails to build with Mono > 2.6 with warn CS0419 treated as error.
        While cref contains argument type signature compiler complains with error: Ambiguous reference in cref attribute `log4net.Appender.AppenderSkeleton.DoAppend'. Assuming {quote}`log4net.Appender.AppenderSkeleton.DoAppend(log4net.Core.LoggingEvent)' but other overloads including `log4net.Appender.AppenderSkeleton.DoAppend(log4net.Core.LoggingEvent[])' have also matched{quote}
        See [mail archive|http://mail-archives.apache.org/mod_mbox/logging-log4net-user/201110.mbox/%3C8762k4m6oq.fsf@v35516.1blu.de%3E] and [pastebin|http://pastebin.com/hpPaipXX]

        Note that using signature "M:AppenderSkeleton.DoAppend(LoggingEvent)" as per [http://msdn.microsoft.com/en-us/library/aa664807%28VS.71%29.aspx|B.3.1 ID string format] helps to resolve this issue.
        Fails to build with Mono > 2.6 with warn CS0419 treated as error.
        While cref contains argument type signature compiler complains with error: Ambiguous reference in cref attribute `log4net.Appender.AppenderSkeleton.DoAppend'. Assuming {quote}`log4net.Appender.AppenderSkeleton.DoAppend(log4net.Core.LoggingEvent)' but other overloads including `log4net.Appender.AppenderSkeleton.DoAppend(log4net.Core.LoggingEvent[])' have also matched{quote}
        See [mail archive|http://mail-archives.apache.org/mod_mbox/logging-log4net-user/201110.mbox/%3C8762k4m6oq.fsf@v35516.1blu.de%3E] and [pastebin|http://pastebin.com/hpPaipXX]

        Note that using signature "M:AppenderSkeleton.DoAppend(LoggingEvent)" as per [B.3.1 ID string format|http://msdn.microsoft.com/en-us/library/aa664807%28VS.71%29.aspx] helps to resolve this issue.
        Nikolay Orlyuk made changes -
        Description Fails to build with Mono > 2.6 with warn CS0419 treated as error.
        While cref contains argument type signature compiler complains with error: Ambiguous reference in cref attribute `log4net.Appender.AppenderSkeleton.DoAppend'. Assuming `log4net.Appender.AppenderSkeleton.DoAppend(log4net.Core.LoggingEvent)' but other overloads including `log4net.Appender.AppenderSkeleton.DoAppend(log4net.Core.LoggingEvent[])' have also matched
        See [mail archive | http://mail-archives.apache.org/mod_mbox/logging-log4net-user/201110.mbox/%3C8762k4m6oq.fsf@v35516.1blu.de%3E] and [pastebin|http://pastebin.com/hpPaipXX]

        Note that using signature "M:" as per http://msdn.microsoft.com/en-us/library/aa664807%28VS.71%29.aspx
        Fails to build with Mono > 2.6 with warn CS0419 treated as error.
        While cref contains argument type signature compiler complains with error: Ambiguous reference in cref attribute `log4net.Appender.AppenderSkeleton.DoAppend'. Assuming {quote}`log4net.Appender.AppenderSkeleton.DoAppend(log4net.Core.LoggingEvent)' but other overloads including `log4net.Appender.AppenderSkeleton.DoAppend(log4net.Core.LoggingEvent[])' have also matched{quote}
        See [mail archive|http://mail-archives.apache.org/mod_mbox/logging-log4net-user/201110.mbox/%3C8762k4m6oq.fsf@v35516.1blu.de%3E] and [pastebin|http://pastebin.com/hpPaipXX]

        Note that using signature "M:AppenderSkeleton.DoAppend(LoggingEvent)" as per [http://msdn.microsoft.com/en-us/library/aa664807%28VS.71%29.aspx|B.3.1 ID string format] helps to resolve this issue.
        Nikolay Orlyuk made changes -
        Field Original Value New Value
        Description Fails to build with Mono > 2.6 with warn CS0419 treated as error.
        While cref contains argument type signature compiler complains with error: Ambiguous reference in cref attribute `log4net.Appender.AppenderSkeleton.DoAppend'. Assuming `log4net.Appender.AppenderSkeleton.DoAppend(log4net.Core.LoggingEvent)' but other overloads including `log4net.Appender.AppenderSkeleton.DoAppend(log4net.Core.LoggingEvent[])' have also matched
        See [mail archive | http://mail-archives.apache.org/mod_mbox/logging-log4net-user/201110.mbox/%3C8762k4m6oq.fsf@v35516.1blu.de%3E] and [pastebin|http://pastebin.com/hpPaipXX]
        Fails to build with Mono > 2.6 with warn CS0419 treated as error.
        While cref contains argument type signature compiler complains with error: Ambiguous reference in cref attribute `log4net.Appender.AppenderSkeleton.DoAppend'. Assuming `log4net.Appender.AppenderSkeleton.DoAppend(log4net.Core.LoggingEvent)' but other overloads including `log4net.Appender.AppenderSkeleton.DoAppend(log4net.Core.LoggingEvent[])' have also matched
        See [mail archive | http://mail-archives.apache.org/mod_mbox/logging-log4net-user/201110.mbox/%3C8762k4m6oq.fsf@v35516.1blu.de%3E] and [pastebin|http://pastebin.com/hpPaipXX]

        Note that using signature "M:" as per http://msdn.microsoft.com/en-us/library/aa664807%28VS.71%29.aspx
        Nikolay Orlyuk created issue -

          People

          • Assignee:
            Dominik Psenner
            Reporter:
            Nikolay Orlyuk
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development