-1

We've setup our release pipeline using a single build that triggers a release to multiple environments with variables for XML config substitution. This is working quite well for any config values in appSettings or connectionStrings but we have an issue with the subject of the ELMAH error emails. Prior to switching to VSTS Releases we were using publish profiles and config transformation to make the config updates, now that we're in VSTS we've lost the ability to transform the ELMAH email subject, is anyone aware of a way to do this?

web.config screenshot

Mike Devenney
  • 1,758
  • 1
  • 23
  • 42

1 Answers1

1

It requires just a few lines of Powershell to edit an Xml file, e.g. Powershell script to update XML file content.

Or you can use one of the many free extensions in the VSTS Marketplace, for example Guillaume's XDT Transform.

Giulio Vian
  • 8,248
  • 2
  • 33
  • 41
  • I find it annoying that I have to use two different tasks to achieve the same goal. Variable substitution only works for elements in the appSettings and connectionStrings sections, so we're forced to use Powershell or another task to replace nodes in any other section of a config file... : ( – Mike Devenney Jul 23 '18 at 19:38