VSTS发布级别” Windows PowerShell无法运行路径包含空格的脚本”

VSTS release level “Windows PowerShell Cannot Run Script Whose Path Contains Spaces”

我在VSTS上开发DevOps。当前,我使用" PowerShell"任务来运行PowerShell脚本。但是很不幸,我的VSTS储存库名称有空格(例如" WebApp Demo"),这就是为什么我在VSTS发行版级别执行PowerShell脚本时遇到问题。

[error] Process completed with exit code 0 and had 1 error(s) written
to the error stream.

VSTS版本定义中的PowerShell任务配置
enter


基于日志,您ConfigFilePath的值是包含空间的路径。

将参数更改为:

-webConfigFilePath"$(ConfigFilePath)"