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

Build Fails when PreBuildEvent has "REM" comments

XMLWordPrintable

    • 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.

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

              Created:
              Updated:
              Resolved: