sebastianlux / tfbuildtask-updateAssemblyInfo

Team Foundation Build (TFBuild) task for easy updating of assembly information
https://marketplace.visualstudio.com/items?itemName=sebastianlux.UpdateAssemblyInfo
MIT License
5 stars 3 forks source link

Copyright does not parse date. #4

Open markjourdan opened 7 years ago

markjourdan commented 7 years ago

I'm trying to set the Copyright field to "Copyright © $(Year:yyyy)". It doesn't seem to parse the $(Year:yyyy).

Is there a way to have it parse the year on the Copyright field?

Environment:

Screenshots Build Setup image

Build Output image

sebastianlux commented 7 years ago

Hi Mark,

sorry for the late response. Some variables are still not properly expanded by the tf build environment. I can recommend to use the Variable Toolbox to work around this issue. With this task you can create your own variables like $(My.Year), which you can then use in the AssemblyInfo task. It can be found here: https://marketplace.visualstudio.com/items?itemName=jessehouwing.jessehouwing-vsts-variable-tasks

Hope that helps!

Sebastian