TotalALM / VSTS-Tasks

35 stars 23 forks source link

Updated File is not being saved #21

Closed Franklin89 closed 7 years ago

Franklin89 commented 7 years ago

Hey,

I am trying out your Tokenization task and my file is not being updated. :-( according to the log the file gets found but then it is not processed any further. Got all the variables set and got the tokens in my config (Test)

Log output:

2017-01-24T14:56:34.2270048Z Executing the powershell script: D:\TfsBuildAgents\VsoBuildAgent\tasks\Tokenization\2.1.0\tokenization.ps1 2017-01-24T14:56:34.4960317Z Regex: [A-Za-z0-9.]*... 2017-01-24T14:56:34.4970318Z Source Path: D:\TfsData\Build_work\39bf03a6e... 2017-01-24T14:56:34.4980319Z Target File Name: ... 2017-01-24T14:56:34.5170338Z RecursiveSearch: true... 2017-01-24T14:56:34.5230344Z Targeted FileName: *.config... 2017-01-24T14:56:34.5560377Z Targeted FileName Encoding: UTF8... 2017-01-24T14:56:34.5600381Z Target File Match: D:\TfsData\Build_work\39bf03a6e\test\0.2.0-solution.1+10\bin\Release\SampleApplication.exe.config... 2017-01-24T14:56:34.5600381Z Temp File: D:\TfsData\Build_work\39bf03a6e\test\0.2.0-solution.1+10\bin\Release\SampleApplication.exe.config.tmp...

Any Idea?

PavelPikat commented 7 years ago

I have the same issue - the tasks find all the tokens and corresponding values from my environment variables, but the resulting file still contains original tokens with "__"

Franklin89 commented 7 years ago

Did you use the double underscore?