Msdeploy 'computerName' 未被识别为内部或外部命令

Msdeploy 'computerName' is not recognized as an internal or external command

学习 TeamCity。按照 https://confluence.jetbrains.com/pages/viewpage.action?pageId=54334902 的说明进行操作 写了这样的命令:

"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe"
    -source:package="C:\ProgramData\JetBrains\TeamCity\artifacts\webdeploy\Development\<target environment>\TestWebApplication.zip"
    -dest:auto,
        computerName="https://<windows azure web site web publish URL>:443/msdeploy.axd?site=<windows azure web site name>",
        userName="<deployment user name>",
        password="<deployment password>",
        authtype="Basic",
        includeAcls="False"
    -verb:sync
    -disableLink:AppPoolExtension 
    -disableLink:ContentExtension 
    -disableLink:CertificateExtension

作为命令行构建步骤。

所有参数都已在当前构建配置的参数中设置。 当 运行 构建时我遇到了这样的异常:

The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
'computerName' is not recognized as an internal or external command,
operable program or batch file.
'userName' is not recognized as an internal or external command,
operable program or batch file.
'password' is not recognized as an internal or external command,
operable program or batch file.
'authtype' is not recognized as an internal or external command,
operable program or batch file.
'includeAcls' is not recognized as an internal or external command,
operable program or batch file.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
Process exited with code 1
Step Command Line failed

我做错了什么?

命令行确实应该一行命令

"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -source:package="C:\ProgramData\JetBrains\TeamCity\artifacts\webdeploy\Development\<target environment>\TestWebApplication.zip" -dest:auto, computerName="https://<windows azure web site web publish URL>:443/msdeploy.axd?site=<windows azure web site name>", userName="<deployment user name>", password="<deployment password>", authtype="Basic", includeAcls="False" -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension

或者,为了更好的可读性,escape CR/LF line endings 使用 ^ caret 如下:

"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" ^
      -source:package='artifacts\WebDeploy\<target environment>\AcmeCompany.Portal.zip' ^
    -dest:auto, ^
        computerName="https://<windows azure web site web publish URL>:443/msdeploy.axd?site=<windows azure web site name>", ^
        userName="<deployment user name>", ^
        password="<deployment password>", ^
        authtype="Basic", ^
        includeAcls="False" ^
    -verb:sync ^
    -disableLink:AppPoolExtension ^
    -disableLink:ContentExtension ^
    -disableLink:CertificateExtension ^
    -setParamFile:"msdeploy\parameters\<target environment>\AcmeCompany.Portal.SetParameters.xml"

老实说,如果使用的路径包含 space(s):

,我不确定是否正确引用 -source: 参数目标
-source:"package='artifacts\WebDeploy\real target environment\AcmeCompany.Portal.zip'"

以及关于使用 ' 单引号(撇号):

-source:"package=artifacts\WebDeploy\real target environment\AcmeCompany.Portal.zip"

-source:package="artifacts\WebDeploy\real target environment\AcmeCompany.Portal.zip"