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

Build Fails when PreBuildEvent has "REM" comments

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      My Visual Studio project has PreBuildEvents. I get errors when I have comments in the PreBuildEvent.

      Error Message

      C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(1063,5): error MSB3073: The command "REM -------------------------------------------- [C:\Jenkins\jobs\Test Git\workspace\Snap.csproj]
      
      
      
      C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(1063,5): error MSB3073: " exited with code 4. [C:\Jenkins\jobs\Test Git\workspace\Snap.csproj]
      

      If I remove these comments from the PreBuild event, it works.

      If I build the project directly from Visual Studio (with PreBuild event comments), it works.

        Attachments

          Activity

          Hide
          leisenstein Larry Eisenstein added a comment -

          Sorry, but this was not a bug. The build was failing due to a COPY command in the build event that was looking for files that did not exist.

          Show
          leisenstein Larry Eisenstein added a comment - Sorry, but this was not a bug. The build was failing due to a COPY command in the build event that was looking for files that did not exist.

            People

            Assignee:
            kdsweeney kdsweeney
            Reporter:
            leisenstein Larry Eisenstein
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: