public/build/Add-PSTSBuildDefinitionProperty.ps1
function Add-PSTSBuildDefinitionProperty { param( [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true)][object] $buildDefinition, [Parameter(ValueFromPipelineByPropertyName = $true)][string] $name=$null ) process { if ($name -ne $null) { $buildDefinition.name= $name } return $buildDefinition } } |