Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-7134

MsBuildParser not including project directory when determining filename for warning

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: warnings-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      Here's an excerpt from one of my build logs...

      Project "C:\development\hudson-slave\workspace\MySolution\MySolution.sln" (1) is building "C:\development\hudson-slave\workspace\MySolution\MyProject\MonthCalendar.csproj" (3) on node 0 (Rebuild target(s)).
      Deleting file "C:\development\hudson-slave\workspace\MySolution\MyProject\bin\x86\Release\MonthCalendar.dll".
      Deleting file "C:\development\hudson-slave\workspace\MySolution\MyProject\obj\x86\Release\Nabi.Calendar.AlignControl.resources".
      Deleting file "C:\development\hudson-slave\workspace\MySolution\MyProject\obj\x86\Release\Nabi.Calendar.ImageListPanel.resources".
      Deleting file "C:\development\hudson-slave\workspace\MySolution\MyProject\obj\x86\Release\Nabi.Calendar.MonthCalendar.resources".
      Deleting file "C:\development\hudson-slave\workspace\MySolution\MyProject\obj\x86\Release\Nabi.Calendar.Resource1.resources".
      Deleting file "C:\development\hudson-slave\workspace\MySolution\MyProject\obj\x86\Release\MonthCalendar.csproj.GenerateResource.Cache".
      Deleting file "C:\development\hudson-slave\workspace\MySolution\MyProject\obj\x86\Release\MonthCalendar.dll".
      EntityClean:
      Successfully cleaned the output for 0 EDMX files.
      EntityDeploy:
      Processing 0 EDMX files.
      Finished processing 0 EDMX files.
      CoreResGen:
      Processing resource file "AlignControl.resx" into "obj\x86\Release\Nabi.Calendar.AlignControl.resources".
      Processing resource file "ImageListPanel.resx" into "obj\x86\Release\Nabi.Calendar.ImageListPanel.resources".
      Processing resource file "MonthCalendar.resx" into "obj\x86\Release\Nabi.Calendar.MonthCalendar.resources".
      Processing resource file "Resource1.resx" into "obj\x86\Release\Nabi.Calendar.Resource1.resources".
      MonthCalendar.cs(1994,25): warning CS0809: Obsolete member 'Nabi.Calendar.MonthCalendar.BackgroundImage' overrides non-obsolete member 'System.Windows.Forms.Control.BackgroundImage'
      MonthCalendar.cs(2009,31): warning CS0809: Obsolete member 'Nabi.Calendar.MonthCalendar.RightToLeft' overrides non-obsolete member 'System.Windows.Forms.Control.RightToLeft'
      MonthCalendar.cs(2024,24): warning CS0809: Obsolete member 'Nabi.Calendar.MonthCalendar.Font' overrides non-obsolete member 'System.Windows.Forms.Control.Font'
      MonthCalendar.cs(2039,25): warning CS0809: Obsolete member 'Nabi.Calendar.MonthCalendar.BackColor' overrides non-obsolete member 'System.Windows.Forms.Control.BackColor'
      MonthCalendar.cs(2054,26): warning CS0809: Obsolete member 'Nabi.Calendar.MonthCalendar.Text' overrides non-obsolete member 'System.Windows.Forms.Control.Text'
      MonthCalendar.cs(2069,25): warning CS0809: Obsolete member 'Nabi.Calendar.MonthCalendar.ForeColor' overrides non-obsolete member 'System.Windows.Forms.Control.ForeColor'
      CopyFilesToOutputDirectory:
      Copying file from "obj\x86\Release\MonthCalendar.dll" to "bin\x86\Release\MonthCalendar.dll".
      MonthCalendar -> C:\development\hudson-slave\workspace\MySolution\MyProject\bin\x86\Release\MonthCalendar.dll
      Done Building Project "C:\development\hudson-slave\workspace\MySolution\MyProject\MonthCalendar.csproj" (Rebuild target(s)).

      This produces warnings as follows:

      <warning>
      <message>Obsolete member 'Nabi.Calendar.MonthCalendar.RightToLeft' overrides non-obsolete member 'System.Windows.Forms.
      Control.RightToLeft'</message>
      <priority>NORMAL</priority>
      <key>42</key>
      <lineRanges>
      <range>
      <start>2009</start>
      <end>2009</end>
      </range>
      </lineRanges>
      <primaryLineNumber>2009</primaryLineNumber>
      <fileName>MonthCalendar.cs</fileName>
      <packageName>-</packageName>
      <category>CS0809</category>
      <type>MSBuild</type>
      <contextHashCode>43</contextHashCode>
      <origin>warnings</origin>
      <pathName></pathName>
      </warning>
      <warning>

      When the correct fileName and pathName should be:

      <fileName>MyProject/MonthCalendar.cs</fileName>

      <pathName>MyProject</pathName>

        Attachments

          Activity

            People

            • Assignee:
              drulli Ulli Hafner
              Reporter:
              acollins acollins
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: