App.config variable substitution

hostname = MyComputer

What’s the best way of updating the following line in app.config during a deployment?

HI,

Thanks for reaching out.

You can use any of the following:

a) If the key is in App.settings: http://docs.octopusdeploy.com/display/OD/Configuration+files#Configurationfiles-ConfigurationVariables

b) Configuration transforms: http://docs.octopusdeploy.com/display/OD/Configuration+files#Configurationfiles-ConfigurationTransformation

c) whether the key is in App.Settings or not: http://docs.octopusdeploy.com/display/OD/Configuration+files#Configurationfiles-VariablesInFiles

Hope that helps,
Dalmiro