Visual Studio Team Services Online (www.visualstudio.com) Release Definitions has a setting within IIS Web App Deploy
to perform XML variable substitution. Based on the in-line help:
Variables defined in the Build or Release Definition will be matched against the 'key' or 'name' entries in the appSettings, applicationSettings, and connectionStrings sections of any config file and parameters.xml. Variable Substitution is run after config transforms.
Is there any such simple Task that can be applied when deploying .NET Desktop-oriented releases (for desktop apps or Windows services)? Specifically, I want to replace the value
part of key-value elements of appSettings.config
files (or, post-build they are now *.exe.config
).
I've seen some token replacement marketplace add-ons, but those don't do the trick. They'll replace the value
part of appSetting, but not based on key
. I could probably shoe-horn it, but its inelegant & fragile.