我试图在VSTS中进行构建定义,我收到以下错误:

找不到与参数名称'EnvironmentName'匹配的参数任务PowerShellOnTargetMachines失败 . 这导致作业失败 . 查看任务的日志以获取更多详细信息 .

我不能做一个构建定义:

  • 将文件复制到Windows机器

  • 运行powerShell脚本

我使用powershell远程脚本配置虚拟机 .

Here it is the Build ScreenShot

Here it is my PowerShell Script Build Configuration