Visual Studio builder task does not allow the pipe symbol to be passed in the arguments

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Low Engagement
    • 4.0
    • Component/s: .NET, Windows
    • Environment:
      Standalone Bamboo
      Windows Server 2008 R2 6.1
      JRE Version1.6.0_26-b03
    • 0
    • 2

      When specifying a platform to build in the Visual Studio builder tasks' configuration page the parameter is not passed to further steps correctly.

      The parsing of arguments in bamboo is good, but devenv is a 'special' beast:
      1. It has parameters pairs separated by whitespace
      2. The platform to build uses the pipe symbol (what were they thinking?)

      An example: devenv Project.sln /Rebuild "Release|Any CPU"

      To get around the first issue we changed the options to: /Rebuild '"Release|Any CPU"'
      To get around the second issue we needed to modify devenvrunner.bat to add quotes to the argument if it contained a pipe character.

      I have attached our fix for the batch file.

        1. devenvrunner.bat
          0.6 kB
          Adam Woods

            Assignee:
            Unassigned
            Reporter:
            Adam Woods
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified