Step 3 - Replace Tokens in .config - Build
  • 18 Nov 2019
  • 1 Minute to read
  • Contributors
  • Comment
  • Dark
    Light
  • PDF

Step 3 - Replace Tokens in .config - Build

  • Comment
  • Dark
    Light
  • PDF

Article Summary

In this task I am using the replace tokens task to configure any config files for use when running the solution for testing. Note that the prefix for any tokens is __ and the suffix is __

A picture of the configuration of this task is below

image.png

YAML

The yaml for this task is below

steps:
- task: qetza.replacetokens.replacetokens-task.replacetokens@3
  displayName: 'Replace tokens in **/*.config'
  inputs:
    tokenPrefix: '__'
    tokenSuffix: '__'

Was this article helpful?