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

        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.
        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?
        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
        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!

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development