0
我有一个powershell脚本,它根据来自XML属性文件的'type'读取节点值,现在我想从TFS读取一个参数'type'节点值Git XAML构建过程。如何在XAML构建过程中声明参数并在构建脚本时读取它?从XAML读取参数Post生成参数到Powershell脚本
$env="Read from XAML build Process"
$xmlDocPath="D:\*****\ScriptsConfig.xml";
[xml]$xmlFile = Get-Content $xmlDocPath;
$PathToDropUIcssandjss=$xml.Objects.Object | Where-Object {$_.type -eq $env} | Select-Object -ExpandProperty PathToDropUIcssandjss
$DeployingPackageBranchFolderName=$xml.Objects.Object | Where-Object {$_.type -eq $args[0]} | Select-Object -ExpandProperty DeployingPackageBranchFolderName
$BranchName=$xml.Objects.Object | Where-Object {$_.type -eq $env} | Select-Object -ExpandProperty BranchName
$ProjectName=$xml.Objects.Object | Where-Object {$_.type -eq $env} | Select-Object -ExpandProperty ProjectName
$Automation=$xml.Objects.Object | Where-Object {$_.type -eq $env} | Select-Object -ExpandProperty Automation
$DeploymentEnvironment=$xml.Objects.Object | Where-Object {$_.type -eq $env} | Select-Object -ExpandProperty DeploymentEnvironment
您是否意味着您想在TFS构建过程中为PowerShell脚本指定变量?你在使用InvokeProcess活动吗? –
我的Git模板中没有Invoke进程 –