Build Fails when PreBuildEvent has "REM" comments

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Major
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: