[英]Assign variable in PowerShell script during TFS build process
I am trying to execute PowerShell script during TFS build process. 我正在尝试在TFS生成过程中执行PowerShell脚本。 I added new activity "RunScript" into TFS Build workflow and new arguments.
我在TFS Build工作流程中添加了新活动“ RunScript”和新参数。 That script works with arguments.
该脚本可与参数一起使用。
Now I am trying to use returned value in another activity. 现在,我试图在其他活动中使用返回值。 Actually I would like to assign some global variable with that value in PowerShell script and pass to another process.
实际上,我想在PowerShell脚本中使用该值分配一些全局变量,然后传递给另一个进程。
Any help? 有什么帮助吗?
用Write-Host输出要返回的值,然后在InvokeProcess活动的Standard Output中获得该值。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.