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

Build Fails when PreBuildEvent has "REM" comments

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • msbuild-plugin
    • None

      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.

          [JENKINS-32654] Build Fails when PreBuildEvent has "REM" comments

          Larry Eisenstein created issue -
          Larry Eisenstein made changes -
          Description Original: My Visual Studio project has PreBuildEvents. I get errors when I have comments in the PreBuildEvent.

          *+Error Message+*

          {code:java}
          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]
          {code}


          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.
          New: My Visual Studio project has PreBuildEvents. I get errors when I have comments in the PreBuildEvent.

          *+Error Message+*

          {code:java}
          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]
          {code}


          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.

          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.

          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.
          Larry Eisenstein made changes -
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 168313 ] New: JNJira + In-Review [ 209655 ]

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

              Created:
              Updated:
              Resolved: