Quote character in Command task argument is not interpreted correctly

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 5.7.2
    • Component/s: Windows
    • None
    • 5
    • Severity 3 - Minor

      Steps to reproduce

      1. Add msdeploy.exe as an executable
      2. Add command task that use msdeploy and use -setParam:name="Foo Bar name",value=FooBarValue as argument in the command task
      3. Run plan

      Observation

      The following error is thrown

      Error: Unrecognized argument '"-setParam:name="Foo'. All arguments must begin with "-".

      Workarounds

      Either:
      a) Use parameters without any space to avoid the use of quotes as it's not interpreted correctly.
      b) Use a script task instead of the command task
      c) Create a script file that encapsulates the targeted command and arguments.

            Assignee:
            Unassigned
            Reporter:
            Deric Lee (Inactive)
            Votes:
            6 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: