The vNext build does not seem to have expanded the variable worldwide.
For example, in MSBuild Arguments, /p:OUTPUT="$(FileDescription)"
expands to / p: OUTPUT = "(assembly definition name)", but in powershell it will only print "$(Build.DefinitionName)"
directly.
Try using the Workaround below: Try using the appropriate generated environment variables (e.g. $ env: Build.DefinitionName ).
$FileDescription = $env:Build.DefinitionName
Note. If you need to change the path, you need to change the PS script instead of the build variable.
source share