Pass argument with quotes to PowerShell script via TeamCity

空扰寡人 提交于 2019-12-05 19:15:05

As your problem is that the input XML string contains double-quoted attribute values, a possible workaround could be using single-quoted attribute values.

Backtick (`) is the PSH escape character. So you can use "`"" to pass a string containing a double quote character.

You can also use single quotes around PSH strings – and also avoid expression interpolation: '"' is also a string with a single double quotes.

But remember you need to ensure the quoting works for both the launcher (sending the arguments) and for the script itself: you may need to escape the escapes as well.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!