App.config variable substitution

hostname = MyComputer

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


Thanks for reaching out.

You can use any of the following:

a) If the key is in App.settings:

b) Configuration transforms:

c) whether the key is in App.Settings or not:

Hope that helps,