I created the steps for automatic deployment using the TFS vNextbuild system . In one step, I need to access $(Date:yyyyMMdd)version versions of some files.
TFS vNext
$(Date:yyyyMMdd)
Below you can find a fragment of the configuration and errors:
So, any idea how to access date-related variables as an argument in a PowerShell script step?
"$ (Date: yyyyMMdd)" token , variable. .
- " " "" "$ (: yyyyMMdd)", "$ (Build.BuildNumber)" "$ (: YYyyMmDd)". $(Build.BuildNumber) .
, date . -fileName CompressFile script :
date
-fileName
CompressFile
Param( [string]$fileName = 'Package{0}' -f (Get-Date).ToString('yyyyMMdd') )
TFS VNext ( ).